diff options
Diffstat (limited to '.github/workflows/unit_tests.yaml')
-rw-r--r-- | .github/workflows/unit_tests.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml index 63d55a204a..46f4215375 100644 --- a/.github/workflows/unit_tests.yaml +++ b/.github/workflows/unit_tests.yaml @@ -228,3 +228,34 @@ jobs: flags: unittests,macos token: ${{ secrets.CODECOV_TOKEN }} verbose: true + # Run unit tests on Windows + windows: + defaults: + run: + shell: + powershell Invoke-Expression -Command "./share/spack/qa/windows_test_setup.ps1"; {0} + runs-on: windows-latest + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 + with: + fetch-depth: 0 + - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d + with: + python-version: 3.9 + - name: Install Python packages + run: | + python -m pip install --upgrade pip pywin32 setuptools pytest-cov clingo + - name: Create local develop + run: | + ./.github/workflows/setup_git.ps1 + - name: Unit Test + run: | + spack unit-test -x --verbose --cov --cov-config=pyproject.toml + ./share/spack/qa/validate_last_exit.ps1 + coverage combine -a + coverage xml + - uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c + with: + flags: unittests,windows + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true |