Skip to content

Merge pull request #57 from mrc-ide/rename-all #325

Merge pull request #57 from mrc-ide/rename-all

Merge pull request #57 from mrc-ide/rename-all #325

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
run:
runs-on: ${{ matrix.config.os }}
name: ${{matrix.config.os }} (${{ matrix.config.py }})
strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, py: '3.11'}
- {os: ubuntu-latest, py: '3.8'}
- {os: ubuntu-latest, py: '3.9'}
- {os: ubuntu-latest, py: '3.10'}
- {os: ubuntu-latest, py: '3.11'}
- {os: windows-latest, py: '3.11'}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.config.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.py }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Test
run: |
hatch run cov-ci
- name: Lint
run: |
# https://github.com/python/mypy/issues/10863
mkdir -p .mypy_cache
hatch run lint:all
- name: Test install
run: |
pip install .
python -c "import pyorderly"
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
# This can be useful, but the false positive rate is
# annoyingly high.
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}