Skip to content

tests

tests #100

Workflow file for this run

name: tests
on:
workflow_run:
workflows: ["lint"]
branches:
- main
types:
- completed
jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: pysetup
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install
run: |
pip install -e ".[test,dask]"
- name: run tests
run: |
# CI runners have no configured git. Need that for git support tests.
git config --global user.name "Gaylord Focker"
git config --global user.email "[email protected]"
# Run parallel tests (-n flag). Detect all $(pwd)/tests/test_*.py
pytest -n4