Skip to content

Commit 2cf6ef7

Browse files
committed
[gh actions] Split os test matrix
Split the build matrix into OS specific builds. OS specific errors should now not auto-stop the tests on other OS builds.
1 parent 36c30f2 commit 2cf6ef7

1 file changed

Lines changed: 42 additions & 2 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,51 @@ on:
88
branches:
99
- master
1010
jobs:
11-
tests:
11+
linux_tests:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [ubuntu-latest, macos-latest, windows-latest]
15+
os: [ubuntu-latest]
16+
python-version: [3.6, 3.7, 3.8, 3.9]
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Setup Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Display Python version
24+
run: python -c "import sys; print(sys.version)"
25+
- name: Install dependencies
26+
run: |
27+
python setup.py install
28+
pip install -r requirements-test.txt
29+
- name: Run tests
30+
run: pytest
31+
mac_tests:
32+
runs-on: ${{ matrix.os }}
33+
strategy:
34+
matrix:
35+
os: [macos-latest]
36+
python-version: [3.6, 3.7, 3.8, 3.9]
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Setup Python ${{ matrix.python-version }}
40+
uses: actions/setup-python@v2
41+
with:
42+
python-version: ${{ matrix.python-version }}
43+
- name: Display Python version
44+
run: python -c "import sys; print(sys.version)"
45+
- name: Install dependencies
46+
run: |
47+
python setup.py install
48+
pip install -r requirements-test.txt
49+
- name: Run tests
50+
run: pytest
51+
win_tests:
52+
runs-on: ${{ matrix.os }}
53+
strategy:
54+
matrix:
55+
os: [windows-latest]
1656
python-version: [3.6, 3.7, 3.8, 3.9]
1757
steps:
1858
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)