Skip to content

Commit

Permalink
Only run CI cron job for the upstream repository (#361)
Browse files Browse the repository at this point in the history
We should skip it for forks to avoid wasting compute.
  • Loading branch information
hugovk authored Jun 21, 2023
1 parent 9c57dd3 commit d2d0202
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
# Run tests and upload to codecov
test:
name: ${{ matrix.os }} python=${{ matrix.python }} dependencies=${{ matrix.dependencies }}
if: ${{ github.repository_owner == 'fatiando' || github.event_name != 'schedule' }}
runs-on: ${{ matrix.os }}-latest
strategy:
# Otherwise, the workflow would stop if a single job fails. We want to
Expand Down

0 comments on commit d2d0202

Please sign in to comment.