Skip to content

Commit

Permalink
Fix GitHub CI, use 3.11 and 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardkaindl committed Nov 14, 2024
1 parent 8786338 commit 32b2a79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: '3.10'
os: ubuntu-22.04
- python-version: '3.11'
os: ubuntu-22.04
- python-version: '3.12'
os: ubuntu-22.04
- python-version: '3.13'
os: ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -56,21 +58,6 @@ jobs:
pip install 'virtualenv<20.22' 'tox==4.5.1' tox-gh-actions
tox --workdir .github/workflows/.tox --recreate
# tox >= 4.0.0 is needed for using optional-dependencies from pyproject.toml, which is
# is not available for python <= 3.6, so use the python3.8 of Ubuntu-20.04 to install it:
- name: Run tox for 3.6 and 3.8 on ${{ matrix.os }}'s 3.8 to get 'extras' from pyproject.toml)
if: ${{ matrix.python-version == 2.7 || matrix.python-version == 3.6 }}
run: |
set -xv;curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.8 get-pip.py
# The alternative is installing python3-pip but we don't need full pip function for now:
# sudo apt-get update && sudo apt-get install -y python3-pip
# Let tox-gh-actions get the environment(s) to run tests with from tox.ini:
# Use tox==4.5.1: tox>=4 is needed for reading the extras from pyproject.toml
# Warning: tox>=4.5.2 depends on virutalenv>=20.23, which breaks Python 2.7:
python3.8 -m pip install 'virtualenv<20.22' 'tox==4.5.1' tox-gh-actions
tox --workdir .github/workflows/.tox --recreate
- name: Select the coverage file for upload
if: |
( matrix.python-version == '3.6' || matrix.python-version == '3.11' ) &&
Expand Down
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ notes=FIXME,XXX,TODO

[FORMAT]

# Maximum number of arguments for a function or method.
max-args = 10

# Maximum number of characters on a single line.
max-line-length=116

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Run the tests which uncover issues most often first! For example:
# 1. python 3.11 coveragest for changed, but not covered lines and mypy check
# 2. python 3.6 test and pylint warnings from changed lines
# 3. pytype (needs Python 3.8 for best results)
# 3. pytype (needs Python 3.8 or newer for best results)
# 4. pyright checks, pytest test report as markdown for GitHub Actions summary
envlist = py311-covcp-check-mdreport-lint-pyright-pytype, py313-cov
envlist = py311-covcp-check-mdreport, py312-lint-pyright-pytype, py313-cov
isolated_build = true
skip_missing_interpreters = true
requires =
Expand Down

0 comments on commit 32b2a79

Please sign in to comment.