Skip to content

[pre-commit.ci] pre-commit autoupdate (#306) #503

[pre-commit.ci] pre-commit autoupdate (#306)

[pre-commit.ci] pre-commit autoupdate (#306) #503

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/[email protected]
with:
image_name: ghcr.io/${{ github.repository }}
tag_override: ${{ github.event_name == 'push' && 'ci' || '' }}
pre_command: docker compose up -d proxy
compose_service: fieldwork
compose_command: pytest
cache_extra_imgs: |
"docker.io/postgis/postgis:${{ vars.POSTGIS_TAG }}"
"ghcr.io/hotosm/fmtm/odkcentral:${{ vars.ODK_CENTRAL_TAG }}"