From 0f26931628bf6485b07ffe4611eb1ef3cec2c8c7 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Fri, 16 Sep 2022 14:38:29 +0200 Subject: CI: add coverage on Windows (#32610) Co-authored-by: Tom Scogland --- .github/workflows/windows_python.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to '.github') diff --git a/.github/workflows/windows_python.yml b/.github/workflows/windows_python.yml index 82e48370ac..4a1bfafae8 100644 --- a/.github/workflows/windows_python.yml +++ b/.github/workflows/windows_python.yml @@ -23,14 +23,22 @@ jobs: python-version: 3.9 - name: Install Python packages run: | - python -m pip install --upgrade pip six pywin32 setuptools codecov coverage + python -m pip install --upgrade pip six pywin32 setuptools codecov pytest-cov - name: Create local develop run: | .\spack\.github\workflows\setup_git.ps1 - name: Unit Test run: | echo F|xcopy .\spack\share\spack\qa\configuration\windows_config.yaml $env:USERPROFILE\.spack\windows\config.yaml - spack unit-test --verbose --ignore=lib/spack/spack/test/cmd + cd spack + dir + (Get-Item '.\lib\spack\docs\_spack_root').Delete() + spack unit-test --verbose --cov --cov-config=pyproject.toml --ignore=lib/spack/spack/test/cmd + coverage combine -a + coverage xml + - uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 + with: + flags: unittests,windows unit-tests-cmd: runs-on: windows-latest steps: @@ -42,14 +50,21 @@ jobs: python-version: 3.9 - name: Install Python packages run: | - python -m pip install --upgrade pip six pywin32 setuptools codecov coverage + python -m pip install --upgrade pip six pywin32 setuptools codecov coverage pytest-cov - name: Create local develop run: | .\spack\.github\workflows\setup_git.ps1 - name: Command Unit Test run: | echo F|xcopy .\spack\share\spack\qa\configuration\windows_config.yaml $env:USERPROFILE\.spack\windows\config.yaml - spack unit-test lib/spack/spack/test/cmd --verbose + cd spack + (Get-Item '.\lib\spack\docs\_spack_root').Delete() + spack unit-test --verbose --cov --cov-config=pyproject.toml lib/spack/spack/test/cmd + coverage combine -a + coverage xml + - uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 + with: + flags: unittests,windows build-abseil: runs-on: windows-latest steps: @@ -85,7 +100,7 @@ jobs: python-version: 3.9 - name: Install Python packages run: | - python -m pip install --upgrade pip six pywin32 setuptools codecov coverage + python -m pip install --upgrade pip six pywin32 setuptools - name: Add Light and Candle to Path run: | $env:WIX >> $GITHUB_PATH @@ -116,7 +131,7 @@ jobs: python-version: 3.9 - name: Install Python packages run: | - python -m pip install --upgrade pip six pywin32 setuptools codecov coverage + python -m pip install --upgrade pip six pywin32 setuptools - name: Setup installer directory run: | mkdir -p spack_installer -- cgit v1.2.3-60-g2f50