Skip to content

Commit f0a9947

Browse files
committed
test tox with py39 on Github Actions CI
1 parent ae2ddf4 commit f0a9947

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/tox.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Python package
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.platform }}
10+
strategy:
11+
matrix:
12+
platform: [ubuntu-latest, macos-latest, windows-latest]
13+
python-version: [3.6, 3.7, 3.8, 3.9]
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install tox tox-gh-actions
25+
- name: Test with tox
26+
run: tox
27+
env:
28+
PLATFORM: ${{ matrix.platform }}

tox.ini

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11

22
[tox]
33
isolated_build = True
4-
envlist = clean,py{36,37,38}-{mindeps,alldeps},report,pre-commit
4+
envlist = clean,py{36,37,38,39}-{mindeps,alldeps},report,pre-commit
5+
6+
[gh-actions]
7+
python =
8+
3.6: py36-mindeps, py36-alldeps
9+
3.7: py37-mindeps, py37-alldeps, report
10+
3.8: py38-mindeps, py38-alldeps
11+
3.9: py39-mindeps, py39-alldeps
12+
13+
[gh-actions:env]
14+
PLATFORM =
15+
ubuntu-latest: linux
16+
macos-latest: macos
17+
windows-latest: windows
518

619
[pytest]
720
testpaths = adaptive

0 commit comments

Comments
 (0)