From 0d57a13c9b18473d7b3a470f0ccfb3bc641360e0 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 26 Mar 2022 22:15:26 +0100 Subject: [PATCH] run tests on Windows XDMF does not work (not sure why, works locally) --- .github/workflows/Python.yml | 11 +++++++++-- python/tests/test_ConfigMaterial.py | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Python.yml b/.github/workflows/Python.yml index b3d714f92..ca74c0016 100644 --- a/.github/workflows/Python.yml +++ b/.github/workflows/Python.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: python-version: ['3.8', '3.9'] #, '3.10'] - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v2 @@ -25,11 +25,18 @@ jobs: python -m pip install --upgrade pip pip install pytest pandas scipy h5py vtk matplotlib pyyaml - - name: Install and run unit tests + - name: Install and run unit tests (Unix) + if: runner.os != 'Windows' run: | python -m pip install ./python --no-deps -vv --use-feature=in-tree-build COLUMNS=256 pytest python + - name: Install and run unit tests (Windows) + if: runner.os == 'Windows' + run: | + python -m pip install ./python --no-deps -vv --use-feature=in-tree-build + pytest python -k 'not XDMF' + apt: runs-on: ubuntu-latest diff --git a/python/tests/test_ConfigMaterial.py b/python/tests/test_ConfigMaterial.py index f8dfa1079..d3ea986c5 100644 --- a/python/tests/test_ConfigMaterial.py +++ b/python/tests/test_ConfigMaterial.py @@ -1,3 +1,4 @@ +import sys import os import pytest import numpy as np