Skip to content

Commit

Permalink
ci: fix logic for pytest img naming, ci for push
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 22, 2023
1 parent 5dcff3f commit 5e51861
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: pytest

on:
# Run tests on all pushed branches
push:
branches:
- "*"
branches: [main]
# Run tests on PR, prior to merge to main & development
pull_request:
branches:
- main
branches: [main]
# Allow manual trigger (workflow_dispatch)
workflow_dispatch:

Expand All @@ -19,3 +16,4 @@ jobs:
image_name: ghcr.io/${{ github.repository }}
build_args: |
COMMIT_REF=${{ github.sha }}
tag_override: ${{ github.event_name == 'push' && 'ci' || '' }}

0 comments on commit 5e51861

Please sign in to comment.