Skip to content

Commit

Permalink
Move everything to main yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoodx committed Jan 7, 2025
1 parent fda9cdb commit 3d1de5b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 60 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/coverage.yml

This file was deleted.

24 changes: 23 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,35 @@ jobs:
- name: Execute unittests
run: |
CUDA_VISIBLE_DEVICES=-1 pytest --cov-report=html:html_cov --cov-branch --cov-report term --cov=helical ci/
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: html_cov/

- name: Generate coverage badge
uses: tj-actions/coverage-badge-py@v2

- name: Verify Changed files
uses: tj-actions/verify-changed-files@v16
id: verify-changed-files
with:
files: coverage.svg

- name: Commit files
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
rm -f assets/coverage.svg
git add -u assets/
git commit -m "Remove old coverage badge"
mv coverage.svg assets/
git add assets/coverage.svg
git commit -m "Add new coverage badge"
git push
integration-tests:
needs: tests
Expand Down

0 comments on commit 3d1de5b

Please sign in to comment.