Skip to content

TST: Expand test coverage for metrics module (#23) #4

TST: Expand test coverage for metrics module (#23)

TST: Expand test coverage for metrics module (#23) #4

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
paths:
- "orca_python/**"
- ".github/workflows/**"
- "pyproject.toml"
pull_request:
branches:
- main
paths:
- "orca_python/**"
- ".github/workflows/**"
- "pyproject.toml"
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests
run: pytest -n auto
tests-dev-docs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout repository
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
pip install -e ".[dev,docs]"
- name: Run tests
run: pytest