Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
walchko committed Aug 9, 2023
1 parent 2c21355 commit b85493e
Show file tree
Hide file tree
Showing 42 changed files with 805 additions and 3,074 deletions.
59 changes: 16 additions & 43 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CheckPackage
name: python
on: [push]

jobs:
Expand All @@ -7,46 +7,19 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@master
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }} # Version range or exact version of a Python version to use, using semvers version range syntax.
# architecture: 'x64' # (x64 or x86)
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip setuptools wheel build_utils
# - name: Lint with flake8
# run: |
# pip install flake8
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install Poetry
uses: snok/install-poetry@v1
# with:
# version: 1.0.0b3
- name: Turn off Virtualenvs
run: poetry config virtualenvs.create false
- name: Install packages
run: poetry install
- name: Run PyTest
run: poetry run pytest
# - name: Run mypy
# run: poetry run mypy pyservos
# - name: nosetests
# run: |
# pip install nose
# cd python
# python -m pip install -e .
# cd tests
# nosetests -vs test.py
# - name: Python Style Checker
# uses: andymckay/pycodestyle-action@0.1.3
- uses: actions/checkout@master
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: |
cd python
echo "Installing dependencies"
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip setuptools wheel poetry pytest
poetry install
pytest tests/
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
__pycache__
._*
*.pyc
build
Expand All @@ -12,3 +13,9 @@ old
.pytest_cache
.mypy_cache
*.lock
archive
*.csv
*.json
*.pkl
*.gzip

120 changes: 0 additions & 120 deletions archive/archive/BagReader.py

This file was deleted.

192 changes: 0 additions & 192 deletions archive/archive/BagWriter.py

This file was deleted.

Loading

0 comments on commit b85493e

Please sign in to comment.