Skip to content

Commit 868ab58

Browse files
committed
Run GHA on three common OS
1 parent e4e409d commit 868ab58

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ on:
1313

1414
jobs:
1515
build:
16-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.os }}
1717
timeout-minutes: 180
1818
strategy:
19+
fail-fast: false
1920
matrix:
2021
python-version: [3.8]
22+
os: [ubuntu-latest, macos-latest, windows-latest]
2123

2224
steps:
2325
- uses: actions/checkout@v2
@@ -49,10 +51,16 @@ jobs:
4951
USERNAME: ${{ secrets.USERNAME }}
5052
SCRAPER_API_KEY: ${{ secrets.SCRAPER_API_KEY }}
5153
run: |
52-
curl --data-binary @.github/.codecov.yml https://codecov.io/validate | head -n 1
5354
coverage run -m unittest -v test_module.TestScholarly
5455
coverage xml
56+
- name: Validate the repository yaml for codecov
57+
if:
58+
"matrix.os == 'ubuntu-latest'"
59+
run:
60+
curl --data-binary @.github/.codecov.yml https://codecov.io/validate | head -n 1
5561
- name: Upload code coverage
62+
if:
63+
"matrix.os != 'windows-latest'"
5664
uses: codecov/codecov-action@v2
5765
with:
5866
directory: ./

0 commit comments

Comments
 (0)