File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,19 @@ name: CI
3
3
on :
4
4
push :
5
5
branches :
6
- - develop
7
- - master
6
+ - main
8
7
pull_request :
9
8
10
9
jobs :
11
10
build :
12
11
name : build
13
- runs-on : ubuntu-latest
12
+ runs-on : ${{ matrix.os }}
14
13
strategy :
14
+ # Allow other matrix jobs to complete if 1 fails
15
+ fail-fast : false
15
16
matrix :
16
17
python-version : ["3.6", "3.7", "3.8"]
18
+ os : [ubuntu-latest, windows-latest, macos-latest]
17
19
steps :
18
20
- uses : actions/checkout@v2
19
21
@@ -26,15 +28,16 @@ jobs:
26
28
uses : actions/cache@v2
27
29
with :
28
30
path : ~/.cache/pip
29
- key : pip-${{ hashFiles('requirements-dev.txt') }}
30
- restore-keys : pip-
31
+ # Cache based on OS, Python version, and dependency hash
32
+ key : pip-${{ runner.os }}-python${{ matrix.python-version }}-${{ hashFiles('requirements-dev.txt') }}
31
33
32
34
- name : Execute linters and test suites
33
35
run : ./scripts/cibuild
34
-
35
-
36
+
36
37
- name : Upload All coverage to Codecov
37
38
uses : codecov/codecov-action@v1
39
+ # Only upload this once...
40
+ if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'}}
38
41
with :
39
42
token : ${{ secrets.CODECOV_TOKEN }}
40
43
file : ./coverage.xml
You can’t perform that action at this time.
0 commit comments