From f4db095cdb40a1b35c52061d27e8ce3c01871250 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 3 Jan 2023 09:55:16 +0100 Subject: [PATCH] Add Python 3.11 to the testing matrix (#612) * 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 --- .github/workflows/test.yml | 7 ++++--- Makefile | 2 +- tox.ini | 9 ++++++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ae9a2d81..c6b6d1ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/Makefile b/Makefile index 5598adcb..1ae054c1 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,4 @@ format: black src/pydocstyle tests: - tox -e py,install,docs + tox -e py,install diff --git a/tox.ini b/tox.ini index dc0d6691..86cbaa48 100644 --- a/tox.ini +++ b/tox.ini @@ -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 @@ -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} + +