Skip to content

Simulator: MiniRes, a pure-Python two-phase forward model #222

Simulator: MiniRes, a pure-Python two-phase forward model

Simulator: MiniRes, a pure-Python two-phase forward model #222

Workflow file for this run

# From https://github.com/actions/starter-workflows
#
# Potential todos (ref DAPPER)
# - Compute test coverage and submit to coveralls.io
# - Also config for macOS and/or Windows
# - Also config for conda
name: CI tests
on:
push:
branches:
- '*'
# - main
# - master
pull_request:
branches:
- '*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install ruff
run: python -m pip install ruff
- name: Run ruff
run: ruff check src tests
bundled:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["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: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -e ".[dev]"
- name: Launch tests
run: |
pytest --cov=src --cov-report=term