Skip to content

add how to contribute #2

add how to contribute

add how to contribute #2

Workflow file for this run

name: tests
on:
push:
branches: [develop, master, main]
pull_request:
branches: [develop, master, main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit:
name: pytest (py${{ matrix.python-version }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # versioneer needs tags
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package + test extras
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test]
- name: Run unit tests
run: pytest tests/unit -v
lint:
name: ruff + mypy
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install dev extras
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
- name: Lint with ruff
run: ruff check scalable tests
- name: Type-check with mypy (lenient)
# Lenient bootstrap; non-blocking until M-tier typing work lands.
continue-on-error: true
run: mypy scalable