Skip to content

Commit

Permalink
Restore support for 3.7 and change flake8 and pytest installs
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMathieu committed Apr 1, 2024
1 parent 9f590b0 commit e62b4f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
max-parallel: 5

steps:
Expand All @@ -32,14 +32,14 @@ jobs:
init-shell: bash
create-args: >-
python=${{ matrix.python-version }}
flake8
pytest
- name: Lint with flake8
run: |
mamba 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 --ignore=E501,W503,F841,E203
- name: Test with pytest
run: |
mamba install pytest
pytest || true

0 comments on commit e62b4f5

Please sign in to comment.