Skip to content

Commit

Permalink
feat(project): add support for Python 3.11 (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Oct 26, 2022
1 parent e7a11f0 commit d4c30d3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/test.yml
Expand Up @@ -24,18 +24,30 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
node: [12, 14, 16]
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11.0']
# Python 3.11 is currently broken in `setup-python` on MacOS
# https://github.com/actions/setup-python/issues/531
exclude:
- os: macos-latest
python-version: '3.11.0'
node: 12
- os: macos-latest
python-version: '3.11.0'
node: 14
- os: macos-latest
python-version: '3.11.0'
node: 16

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

# TODO: ensure that pyright-python uses this node version
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -74,10 +86,10 @@ jobs:
python-version: [3.9]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -70,5 +70,6 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
)
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -6,6 +6,7 @@ envlist =
py38,
py39,
py310,
py311,
report,

skip_missing_interpreters = true
Expand Down

0 comments on commit d4c30d3

Please sign in to comment.