Skip to content

Commit

Permalink
CI: Invoke coverage differently
Browse files Browse the repository at this point in the history
Fixes #336 

Also, only run CI on pulls or pushes to master in order to prevent duplicate CI runs.
  • Loading branch information
Jacob-Stevens-Haas committed May 27, 2023
1 parent b2d83f8 commit e454de6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Tests

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
Linting:
Expand Down Expand Up @@ -46,7 +52,7 @@ jobs:
cd ..
- name: Test with pytest
run: |
pytest test --cov=pysindy --cov-report=xml
coverage run --source=pysindy -m pytest test && coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit e454de6

Please sign in to comment.