Skip to content

Commit

Permalink
Never push to registry with linting workflow (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantp-ai authored Aug 18, 2024
1 parent 81ed6d6 commit 3e0807e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/lint-format-typecheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ jobs:
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/${{ secrets.GH_DOCKER_REGISTRY_NAMESPACE }}/${{ vars.CONTAINER_IMAGE_NAME }}
# Push new container image if `eventFilterForPush` and `refFilterForPush` (by default allow all branches to trigger a push of the container image) are true
push: filter
# Push new image only if event name that triggered this workflow matches `push`
# If a pull request triggered it, then skip pushing new container image to registry
eventFilterForPush: push
push: never
runCmd: |
poetry run ruff check --fix
poetry run ruff format .
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/${{ secrets.GH_DOCKER_REGISTRY_NAMESPACE }}/${{ vars.CONTAINER_IMAGE_NAME }}
# Push new container image if `eventFilterForPush` and `refFilterForPush` (by default allow all branches to trigger a push of the container image) are true
push: filter
# Push new image only if event name that triggered this workflow matches `push`
# If a pull request triggered it, then skip pushing new container image to registry
eventFilterForPush: push
runCmd: |
poetry run pytest

0 comments on commit 3e0807e

Please sign in to comment.