Skip to content

Commit

Permalink
ci: run test suite against python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Oct 7, 2020
1 parent 7a71979 commit a7ec0b0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
52 changes: 36 additions & 16 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup Python 3.8
uses: actions/setup-python@v1
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Install Tox
run: pip install tox wheel

- name: Run Tox
run: tox -e lint


py36:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup Python 3.6
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.6

Expand All @@ -48,15 +47,14 @@ jobs:
file: ./coverage.xml
fail_ci_if_error: true


py37:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup Python 3.7
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.7

Expand All @@ -72,27 +70,49 @@ jobs:
file: ./coverage.xml
fail_ci_if_error: true


py38:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install Tox
run: pip install tox wheel

- name: Run Tox
run: tox -e py38

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true

py39:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Setup Python 3.8
uses: actions/setup-python@v1
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Install Tox
run: pip install tox wheel

- name: Run Tox
run: tox -e py38
run: tox -e py39

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tox]
envlist =
lint
py{36,37,38}
py{36,37,38,39}

[testenv]
passenv =
GITHUB_TOKEN
deps = -r{toxinidir}/requirements-dev.txt
commands =
py{36,37,38}: python -m pytest tests/
py{36,37,38,39}: python -m pytest tests/

[testenv:lint]
extras=linter
Expand Down

0 comments on commit a7ec0b0

Please sign in to comment.