Skip to content

Commit

Permalink
Re-added conda, renamed job
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mysh committed Apr 19, 2024
1 parent 666a28e commit 780db60
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/TestCoverage.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

name: Test Coverage
on: [pull_request]

jobs:
build:
coverage:

runs-on: windows-latest
steps:
Expand All @@ -13,9 +14,20 @@ jobs:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install coverage genbadge[coverage]
C:\Miniconda\condabin\conda.bat update -n base -c defaults conda
C:\Miniconda\condabin\conda.bat config --add channels conda-forge
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: Check coverage
run: |
# Activate the testenv environment
C:\Miniconda\condabin\conda.bat activate base
C:\Miniconda\condabin\conda.bat list
coverage run -m pytest
coverage xml -o coverage.xml
genbadge coverage -i coverage.xml

0 comments on commit 780db60

Please sign in to comment.