Skip to content

Commit

Permalink
lint-python.yml: Upgrade GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Clauss <[email protected]>
  • Loading branch information
cclauss committed Dec 23, 2023
1 parent 6ba3ff0 commit 3432f65
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install tox
- run: tox -e lint
17 changes: 6 additions & 11 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ jobs:
tox:
strategy:
fail-fast: false
max-parallel: 4
max-parallel: 6
matrix:
python: [3.7, 3.8, 3.9]
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: pip install tox
- if: matrix.python == '3.7'
run: TOXENV=py37 tox
- if: matrix.python == '3.8'
run: TOXENV=py38 tox
- if: matrix.python == '3.9'
run: TOXENV=py39 tox
- run: pip install --upgrade setuptools tox
- run: tox -e py
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pylama==7.7.1
pytest==5.2.2; python_version >= '3.0'
pytest-runner==5.2
pytest
pytest-runner
tox==3.14.0

0 comments on commit 3432f65

Please sign in to comment.