ci: update all workflows to gh-workflows reusable #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pytest | |
on: | |
# Run tests on all pushed branches | |
push: | |
branches: | |
- "*" | |
# Run tests on PR, prior to merge to main & development. | |
pull_request: | |
branches: | |
- main | |
# Allow manual trigger (workflow_dispatch) | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
environment: | |
name: "test" | |
container: | |
image: ghcr.io/hotosm/fmtm-splitter:ci | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run pytest | |
run: | | |
pytest |