Skip to content

ci: add tag_override for pytest on push #45

ci: add tag_override for pytest on push

ci: add tag_override for pytest on push #45

Workflow file for this run

name: pytest
on:
# Run tests on all pushed branches
push:
branches: [main]
# Run tests on PR, prior to merge to main & development
pull_request:
branches: [main]
# Allow manual trigger (workflow_dispatch)
workflow_dispatch:
jobs:
pytest:
uses: hotosm/gh-workflows/.github/workflows/test_pytest.yml@main
with:
image_name: ghcr.io/${{ github.repository }}
build_args: |
COMMIT_REF=${{ github.sha }}
tag_override: ${{ github.event_name == 'push' && 'ci' || '' }}