Skip to content

Commit ec35be3

Browse files
committed
test Python 3.9
1 parent 5e25c99 commit ec35be3

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

.github/workflows/tests.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- {name: Linux, python: '3.8', os: ubuntu-latest, tox: py38}
20-
- {name: Windows, python: '3.8', os: windows-latest, tox: py38}
21-
- {name: Mac, python: '3.8', os: macos-latest, tox: py38}
19+
- {name: Linux, python: '3.9', os: ubuntu-latest, tox: py39}
20+
- {name: Windows, python: '3.9', os: windows-latest, tox: py39}
21+
- {name: Mac, python: '3.9', os: macos-latest, tox: py39}
22+
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}
2223
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
2324
- {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36}
2425
- {name: 'PyPy', python: pypy3, os: ubuntu-latest, tox: pypy3}
25-
- {name: Lowest, python: '3.8', os: ubuntu-latest, tox: 'lowest'}
26-
- {name: Style, python: '3.8', os: ubuntu-latest, tox: style}
27-
- {name: Docs, python: '3.8', os: ubuntu-latest, tox: docs}
26+
- {name: Lowest, python: '3.9', os: ubuntu-latest, tox: lowest}
27+
- {name: Docs, python: '3.9', os: ubuntu-latest, tox: docs}
2828
steps:
2929
- uses: actions/checkout@v2
3030
- uses: actions/setup-python@v2
@@ -39,15 +39,9 @@ jobs:
3939
id: pip-cache
4040
run: echo "::set-output name=dir::$(pip cache dir)"
4141
- name: cache pip
42-
uses: actions/cache@v1
42+
uses: actions/cache@v2
4343
with:
4444
path: ${{ steps.pip-cache.outputs.dir }}
45-
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('tox.ini') }}
46-
- name: cache pre-commit
47-
uses: actions/cache@v1
48-
with:
49-
path: ~/.cache/pre-commit
50-
key: pre-commit|${{ matrix.python }}|${{ hashFiles('.pre-commit-config.yaml') }}
51-
if: matrix.tox == 'style'
45+
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
5246
- run: pip install tox
5347
- run: tox -e ${{ matrix.tox }}

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
3-
py{38,37,36,py3}
4-
py38-lowest
3+
py{39,38,37,36,py3}
4+
py39-lowest
55
style
66
docs
77
skip_missing_interpreters = true
@@ -11,7 +11,7 @@ deps =
1111
-r requirements/tests.txt
1212
lowest: flask==1.0.4
1313
lowest: sqlalchemy==1.2
14-
commands = pytest --tb=short --basetemp={envtmpdir} {posargs}
14+
commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs}
1515

1616
[testenv:style]
1717
deps = pre-commit

0 commit comments

Comments
 (0)