Skip to content

Commit

Permalink
feat: add support for Python 3.10 and 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Nov 29, 2022
1 parent fc96659 commit ef09981
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.8, 3.7, pypy-3.9]
python-version: ["3.11", "3.10", 3.9, 3.8, 3.7, pypy-3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -32,20 +32,20 @@ jobs:
run: python -m pip install -r requirements.txt
# formatters
- name: Run pyupgrade
if: matrix.python-version == '3.9'
if: matrix.python-version == '3.11'
run: pyupgrade --py37-plus setup.py `find z3c -name "*.py"`
- name: Run isort
if: matrix.python-version == '3.9'
if: matrix.python-version == '3.11'
run: isort --check-only setup.py z3c/
- name: Run black
if: matrix.python-version == '3.9'
if: matrix.python-version == '3.11'
run: black --check --skip-string-normalization setup.py z3c/
# linters
- name: Lint with codespell
if: matrix.python-version == '3.9'
if: matrix.python-version == '3.11'
run: codespell *.rst setup.py z3c/
- name: Lint with flake8
if: matrix.python-version == '3.9'
if: matrix.python-version == '3.11'
run: flake8 setup.py z3c/ --count --show-source --statistics
# tests and coverage
- name: Test
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def read(filename):
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Quality Assurance',
Expand Down

0 comments on commit ef09981

Please sign in to comment.