Skip to content

Commit 8b9884e

Browse files
author
Jon Duckworth
authored
Merge pull request #350 from duckontheweb/update-ci
Update CI
2 parents 76c3ba0 + 554b053 commit 8b9884e

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ name: CI
33
on:
44
push:
55
branches:
6-
- develop
7-
- master
6+
- main
87
pull_request:
98

109
jobs:
1110
build:
1211
name: build
13-
runs-on: ubuntu-latest
12+
runs-on: ${{ matrix.os }}
1413
strategy:
14+
# Allow other matrix jobs to complete if 1 fails
15+
fail-fast: false
1516
matrix:
1617
python-version: ["3.6", "3.7", "3.8"]
18+
os: [ubuntu-latest, windows-latest, macos-latest]
1719
steps:
1820
- uses: actions/checkout@v2
1921

@@ -26,15 +28,16 @@ jobs:
2628
uses: actions/cache@v2
2729
with:
2830
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') }}
3133

3234
- name: Execute linters and test suites
3335
run: ./scripts/cibuild
34-
35-
36+
3637
- name: Upload All coverage to Codecov
3738
uses: codecov/codecov-action@v1
39+
# Only upload this once...
40+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'}}
3841
with:
3942
token: ${{ secrets.CODECOV_TOKEN }}
4043
file: ./coverage.xml

0 commit comments

Comments
 (0)