Skip to content

Commit

Permalink
Merge pull request #755 from jazzband/feature/add-py10
Browse files Browse the repository at this point in the history
Add support to run tests for Python 3.10
  • Loading branch information
sergeyklay committed Oct 2, 2021
2 parents 031fa09 + 5f31eb3 commit dcd39a1
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@ on: [push, pull_request]

jobs:
build:
name: Python ${{ matrix.python }}
runs-on: ubuntu-latest

# The maximum number of minutes to let a workflow run
# before GitHub automatically cancels it. Default: 360
timeout-minutes: 30

strategy:
# When set to true, GitHub cancels
# all in-progress jobs if any matrix job fails.
fail-fast: false

max-parallel: 5

matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10.0-rc - 3.10'

steps:
- uses: actions/checkout@v2
Expand All @@ -21,8 +36,7 @@ jobs:

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
run: echo "::set-output name=dir::$(pip cache dir)"

- name: Cache
uses: actions/cache@v2
Expand All @@ -39,8 +53,7 @@ jobs:
python -m pip install --upgrade tox tox-gh-actions
- name: Tox tests
run: |
tox -v
run: tox -v

- name: Upload coverage
uses: codecov/codecov-action@v1
Expand Down

0 comments on commit dcd39a1

Please sign in to comment.