Skip to content

Commit

Permalink
Merge pull request #76 from hephy-dd/tox_tests
Browse files Browse the repository at this point in the history
Use tox in CI/CD
  • Loading branch information
arnobaer authored Jul 26, 2024
2 parents 2e41784 + bb2614b commit 82b7a92
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -35,17 +35,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel flake8 pylint pytest
pip install tox
pip install -e .
- name: Lint with flake8
- name: Test with tox
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with pylint
run: |
pylint -E src
- name: Test with pytest
run: |
pytest
tox -epy

0 comments on commit 82b7a92

Please sign in to comment.