Remove shell syntax highlighting from BibTeX citations in README.md #310
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 conda | |
on: | |
push: | |
branches: [ '*' ] | |
jobs: | |
pytest-with-coverage: | |
permissions: | |
contents: read | |
pull-requests: write | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ] | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up mamba environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
generate-run-shell: true | |
environment-file: envs/environment-test.yml | |
# environment caching does not play nicely with --editable installed packages | |
cache-environment: false | |
cache-downloads: true | |
# persist downloads cache for 1 day | |
cache-downloads-key: downloads-${{ steps.date.outputs.date }} | |
create-args: >- | |
python=${{ inputs.python-version }} | |
- name: Test with pytest | |
run: | | |
pytest --cov=$GITHUB_WORKSPACE --cov-report=xml | |
shell: micromamba-shell {0} | |
- name: Upload coverage report to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml | |
flags: unittests |