Skip to content

Commit

Permalink
Split workflows by OS, add Fortran setup for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lindonroberts committed May 30, 2024
1 parent 73fb414 commit c31d765
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python package unit testing
name: Python package unit testing (Linux)

on: [push, pull_request]

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/python_testing_windows.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c31d765

Please sign in to comment.