Skip to content

Commit

Permalink
only run linux build on push; others on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
thurber committed Jun 14, 2021
1 parent cf874fc commit afa033a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ jobs:
python -m pip install --upgrade pip
pip install .
- name: Test
- name: Test and generate coverage report
run: |
pip install pytest
pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true
13 changes: 3 additions & 10 deletions .github/workflows/build_osx.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: osx

on: [push]
on: [pull_request]

jobs:
build:
Expand Down Expand Up @@ -28,14 +28,7 @@ jobs:
python -m pip install --upgrade pip
pip install .
- name: Test and generate coverage report
- name: Test
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true
pytest
2 changes: 1 addition & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: windows

on: [push]
on: [pull_request]

jobs:
build:
Expand Down

0 comments on commit afa033a

Please sign in to comment.