Skip to content

Commit d8a1463

Browse files
Fix: Update GitHub Actions workflow for Python testing
- I updated actions/checkout to v4 and actions/setup-python to v5. - I modified CI to install tox and run tests using 'tox -e py'. - This change aims to resolve issues with Python version availability in the CI environment, particularly for Python 3.8. - The Python version matrix in the CI ('3.8', '3.9', '3.10', '3.11', '3.12') remains aligned with tox.ini.
1 parent f279dcb commit d8a1463

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/testing.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,20 @@ jobs:
1414
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v1
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install -r requirements.txt
26-
pip install -r requirements-tests.txt
25+
pip install tox
2726
- name: Lint with flake8
2827
run: |
2928
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3029
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31-
- name: Test with pytest
30+
- name: Test with tox
3231
env:
3332
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
34-
run: |
35-
pytest
33+
run: tox -e py

0 commit comments

Comments
 (0)