Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/run_qaqc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches: [main]

jobs:
TestAndCoverageBadgeUpdate:
name: Test and Coverage Badge Update
tests:
name: pytest
runs-on: ubuntu-latest

steps:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"

- name: Install poetry
run: |
Expand All @@ -29,6 +29,19 @@ jobs:
run: |
poetry install --no-root --with dev
poetry run pytest
badge:
# only run on pushes to main
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}

name: update coverage badge
runs-on: ubuntu-latest

# requires the pytest job above
needs: tests

steps:
- name: Build badge
run: |
poetry run coverage-badge -f -o docs/assets/badges/coverage.svg
echo '<!-- timestamp: '"$(date '+%Y-%m-%d %H:%M:%S')"' -->' >> docs/assets/badges/coverage.svg

Expand Down