Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Add Python 3.11 to the testing matrix (#612)
Browse files Browse the repository at this point in the history
* Add Python 3.11 to the testing

* tox.ini: Add py311

* Update test.yml

* Update tox.ini

* Remove docs make command from tests

Docs are automatically generated per pull request using RTD Oauth app. We don't need to regenerate them in github actions. This also removes the dependency on python 3.11 from docs generation.

Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
  • Loading branch information
cclauss and samj1912 committed Jan 3, 2023
1 parent 447af8f commit f4db095
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -11,14 +11,15 @@ jobs:
test-latest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -5,4 +5,4 @@ format:
black src/pydocstyle

tests:
tox -e py,install,docs
tox -e py,install
9 changes: 8 additions & 1 deletion tox.ini
Expand Up @@ -4,7 +4,7 @@
# install tox" and then run "tox" from this directory.

[tox]
envlist = py{36,37,38,39,310}-{tests,install},docs,install,py36-docs
envlist = py{36,37,38,39,310,311}-{tests,install},docs,install,py36-docs

[testenv]
download = true
Expand Down Expand Up @@ -64,3 +64,10 @@ commands = {[testenv:install]commands}
[testenv:py310-install]
skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}


[testenv:py311-install]
skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}


0 comments on commit f4db095

Please sign in to comment.