Bump actions/upload-pages-artifact from 2 to 3 #537
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] | |
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 test dependencies | |
run: | | |
pip install -e ".[tests]" | |
- name: Test with pytest | |
# The flag -s stops pytest from capturing output | |
# This is necessary until proper error reporting is implemented by Modflow | |
run: | | |
pytest -vs --cov=xmipy --cov-report=xml tests/ | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |