diff --git a/.github/workflows/python_testing.yml b/.github/workflows/python_testing_linux.yml similarity index 89% rename from .github/workflows/python_testing.yml rename to .github/workflows/python_testing_linux.yml index f710092..d69b229 100644 --- a/.github/workflows/python_testing.yml +++ b/.github/workflows/python_testing_linux.yml @@ -1,4 +1,4 @@ -name: Python package unit testing +name: Python package unit testing (Linux) on: [push, pull_request] diff --git a/.github/workflows/python_testing_windows.yml b/.github/workflows/python_testing_windows.yml new file mode 100644 index 0000000..8a40778 --- /dev/null +++ b/.github/workflows/python_testing_windows.yml @@ -0,0 +1,30 @@ +name: Python package unit testing (Linux) + +on: [push, pull_request] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [windows-latest] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Setup GNU Fortran + uses: modflowpy/install-gfortran-action@v1 + - name: Install dependencies + run: | + python -m pip install . + pip install pytest + - name: Run unit tests + run: | + cd trustregion/tests + python -m pytest \ No newline at end of file