-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Python 3.7 up to 3.12. (#74)
Drop support for Python 3.6 and older. Fix tests. Run tests on GHA.
- Loading branch information
Showing
8 changed files
with
78 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: tests | ||
|
||
on: | ||
pull_request: | ||
schedule: | ||
- cron: '0 12 * * 0' # run once a week on Sunday | ||
# Allow to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
# We want to see all failures: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ["ubuntu", "ubuntu-20.04"] | ||
config: | ||
# [Python version, tox env] | ||
- ["3.7", "py37"] | ||
- ["3.8", "py38"] | ||
- ["3.9", "py39"] | ||
- ["3.10", "py310"] | ||
- ["3.11", "py311"] | ||
- ["3.12", "py312"] | ||
|
||
runs-on: ${{ matrix.os[1] }} | ||
name: ${{ matrix.config[1] }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.config[0] }} | ||
- name: Pip cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.config[0] }}- | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Test | ||
run: tox -e ${{ matrix.config[1] }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
[tox] | ||
envlist = | ||
{py36,py35,py27}-{sphinx16,sphinx15}-{flask12,flask11}-{bottle12,bottle11}-{tornado44,tornado45} | ||
py37 | ||
py38 | ||
py39 | ||
py310 | ||
py311 | ||
py312 | ||
|
||
[testenv] | ||
deps = | ||
sphinx14: Sphinx >= 1.4.0, < 1.5.0 | ||
sphinx15: Sphinx >= 1.5.0, < 1.6.0 | ||
sphinx16: Sphinx >= 1.6.0, < 1.7.0 | ||
flask11: Flask >= 0.11, < 0.12 | ||
flask12: Flask >= 0.11, < 0.13 | ||
bottle11: bottle >= 0.11.0, < 0.12.0 | ||
bottle12: bottle >= 0.12.0, < 0.13.0 | ||
tornado44: tornado >= 4.4, < 4.5 | ||
tornado45: tornado >= 4.5, < 4.6 | ||
pytest >= 3.3.2, < 4.0.0 | ||
Flask | ||
bottle | ||
tornado | ||
pytest | ||
commands = | ||
# test links | ||
py36-sphinx16-flask12-bottle12: sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees doc {envtmpdir}/linkcheck | ||
py37: sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees doc {envtmpdir}/linkcheck | ||
# test html output | ||
sphinx-build -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html | ||
pytest |