-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (38 loc) · 1.08 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
matrix:
include:
- python-version: "3.6"
env: python3.6
os: ubuntu-20.04 # 3.6 is not available on ubuntu-20.04
- python-version: "3.7"
env: python3.7
- python-version: "3.8"
env: python3.8
- python-version: "3.9"
env: python3.9
- python-version: "3.10"
env: python3.10
- python-version: "3.11"
env: python3.11
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
python -m pip install -e .
pip install tox tox-gh-actions
- name: Run tests on different Python versions
run: tox -e ${{ matrix.env }}