Test with modflow6 release and nightly, add test.common module #557
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous integration | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
pull_request: | |
branches: | |
- develop | |
- master | |
jobs: | |
test: | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
modflow6-repo: [modflow6, modflow6-nightly-build] | |
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 Fortran | |
uses: fortran-lang/setup-fortran@v1 | |
- name: Install MODFLOW 6 | |
uses: modflowpy/install-modflow-action@v1 | |
with: | |
repo: ${{ matrix.modflow6-repo }} | |
- name: Install test dependencies | |
run: | | |
pip install -e ".[tests]" | |
- name: Run tests with MODFLOW 6 release | |
run: | | |
pytest -v --cov=xmipy --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |