Skip to content

Commit 5b73f25

Browse files
committed
Add Python versions, specify specific env for tests, add jobs.
1 parent 137026d commit 5b73f25

File tree

1 file changed

+83
-1
lines changed

1 file changed

+83
-1
lines changed

.github/workflows/main.yml

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
test:
77
strategy:
88
matrix:
9-
python: [3.6, 3.8, 3.9]
9+
python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
1010
platform: [ubuntu-latest, macos-latest, windows-latest]
1111
runs-on: ${{ matrix.platform }}
1212
steps:
@@ -20,6 +20,88 @@ jobs:
2020
python -m pip install tox
2121
- name: Run tests
2222
run: tox
23+
env:
24+
TOXENV: python
25+
26+
qa:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Setup Python
31+
uses: actions/setup-python@v2
32+
with:
33+
python-version: 3.9
34+
- name: Install tox
35+
run: |
36+
python -m pip install tox
37+
- name: Run checks
38+
run: tox
39+
env:
40+
TOXENV: qa
41+
42+
coverage:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
- name: Setup Python
47+
uses: actions/setup-python@v2
48+
with:
49+
python-version: 3.9
50+
- name: Install tox
51+
run: |
52+
python -m pip install tox
53+
- name: Evaluate coverage
54+
run: tox
55+
env:
56+
TOXENV: cov
57+
58+
benchmark:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v2
62+
- name: Setup Python
63+
uses: actions/setup-python@v2
64+
with:
65+
python-version: 3.9
66+
- name: Install tox
67+
run: |
68+
python -m pip install tox
69+
- name: Run benchmarks
70+
run: tox
71+
env:
72+
TOXENV: perf
73+
74+
diffcov:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v2
78+
- name: Setup Python
79+
uses: actions/setup-python@v2
80+
with:
81+
python-version: 3.9
82+
- name: Install tox
83+
run: |
84+
python -m pip install tox
85+
- name: Evaluate coverage
86+
run: tox
87+
env:
88+
TOXENV: diffcov
89+
90+
docs:
91+
runs-on: ubuntu-latest
92+
steps:
93+
- uses: actions/checkout@v2
94+
- name: Setup Python
95+
uses: actions/setup-python@v2
96+
with:
97+
python-version: 3.9
98+
- name: Install tox
99+
run: |
100+
python -m pip install tox
101+
- name: Build docs
102+
run: tox
103+
env:
104+
TOXENV: docs
23105

24106
release:
25107
needs: test

0 commit comments

Comments
 (0)