From 780db60814f1c0976c32bd079a5337ec165cb966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominika=20D=C5=82ugosz?= Date: Fri, 19 Apr 2024 16:37:22 +0200 Subject: [PATCH] Re-added conda, renamed job --- .github/workflows/TestCoverage.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/TestCoverage.yml b/.github/workflows/TestCoverage.yml index 2c7070d..ad6f08b 100644 --- a/.github/workflows/TestCoverage.yml +++ b/.github/workflows/TestCoverage.yml @@ -1,8 +1,9 @@ + name: Test Coverage on: [pull_request] jobs: - build: + coverage: runs-on: windows-latest steps: @@ -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