Add pre-commit Git hooks to manage code style & QA during development… #71
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-with-coverage | |
on: | |
push: | |
branches: [ '*' ] | |
# Enable workflow to be triggered from GitHub CLI, browser, or via API | |
# primarily for testing conda env solution for new Python versions | |
workflow_dispatch: | |
jobs: | |
pytest-with-coverage: | |
permissions: | |
contents: read | |
pull-requests: write | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.12' ] | |
uses: UBC-MOAD/gha-workflows/.github/workflows/pytest-with-coverage.yaml@main | |
with: | |
python-version: ${{ matrix.python-version }} | |
conda-env-file: envs/environment-test.yaml | |
conda-env-name: salishsea-site-test | |
secrets: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |