Skip to content

Merge pull request #11 from modl-uclouvain/develop #9

Merge pull request #11 from modl-uclouvain/develop

Merge pull request #11 from modl-uclouvain/develop #9

Workflow file for this run

name: CI tests
on:
pull_request:
push:
branches:
- main
env:
PYTEST_ADDOPTS: "--color=yes"
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install -e .[dev]
- name: Run pre-commit
run: |
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install latest compatible versions of immediate dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[tests]
- name: Run tests
run: pytest -rs -vvv --durations=0