Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint-python.yml: Upgrade GitHub Actions #777

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
15 changes: 5 additions & 10 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"] # TODO: Fix ssl and add Python 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: 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
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[tox]
envlist = py{37,38,39}
envlist = py{37,38,39,310,311},lint # TODO: Fix ssl and add Python 3.12

[testenv]
whitelist_externals = echo make
deps =
-rrequirements.txt
ruff==0.1.8
setuptools
ruff==0.1.9
allowlist_externals =
echo
make
Expand All @@ -20,7 +21,7 @@ deps =
black
codespell
mypy
ruff==0.1.8
ruff==0.1.9
safety
commands =
# The "-" in front of command tells tox to ignore errors
Expand Down