summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-09-16 14:38:29 +0200
committerGitHub <noreply@github.com>2022-09-16 05:38:29 -0700
commit0f26931628bf6485b07ffe4611eb1ef3cec2c8c7 (patch)
tree5a72b0f69730168b99f5a632256906957f2ea20a /.github
parenta0c7209dc1480b16531fcb992642986f4796bc28 (diff)
downloadspack-0f26931628bf6485b07ffe4611eb1ef3cec2c8c7.tar.gz
spack-0f26931628bf6485b07ffe4611eb1ef3cec2c8c7.tar.bz2
spack-0f26931628bf6485b07ffe4611eb1ef3cec2c8c7.tar.xz
spack-0f26931628bf6485b07ffe4611eb1ef3cec2c8c7.zip
CI: add coverage on Windows (#32610)
Co-authored-by: Tom Scogland <scogland1@llnl.gov>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows_python.yml27
1 files changed, 21 insertions, 6 deletions
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