Skip to content

Commit

Permalink
ci: Change cache condition to restore only on PRs. Put .gitignore in api
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa committed Oct 25, 2023
1 parent 0c2575d commit e1098fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: make django-make-migrations

- name: Restore cached testmon data
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }}
if: ${{ github.event_name == 'pull_request' }}
id: cache-testmon-restore
uses: actions/cache/restore@v3
with:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ src/CI_COMMIT_SHA
.DS_Store
.idea
*.iml
api/.testmondata
api/.testmondata-shm
api/.testmondata-wal
5 changes: 4 additions & 1 deletion api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ saml/
features/workflows/logic/

# Unit test coverage
.coverage
.coverage

# pytest-testmon files
.testmondata*

0 comments on commit e1098fb

Please sign in to comment.