Skip to content

Commit

Permalink
Added coverage badge generation to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mysh authored Apr 19, 2024
1 parent b461ae2 commit 7246f72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/LintAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
C:\Miniconda\condabin\conda.bat config --set channel_priority strict
C:\Miniconda\condabin\conda.bat env update --file environment.yaml --name base
C:\Miniconda\condabin\conda.bat activate base
C:\Miniconda\condabin\conda.bat install coverage
pip install genbadge[coverage]
C:\Miniconda\condabin\conda.bat list
C:\Miniconda\condabin\conda.bat init powershell
- name: Lint with Flake8
Expand All @@ -44,4 +46,12 @@ jobs:
C:\Miniconda\condabin\conda.bat activate base
C:\Miniconda\condabin\conda.bat list
pytest
- name: Test with pytest
run: |
# Activate the testenv environment
C:\Miniconda\condabin\conda.bat activate base
C:\Miniconda\condabin\conda.bat list
coverage report
genbadge coverage -i .\coverage.xml

0 comments on commit 7246f72

Please sign in to comment.