summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-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