Skip to content

Tweak CLI args

Tweak CLI args #23

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 uv
uv pip install .[dev,tests] --system
- 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
env:
RE2FRACTIVE_CAMPAIGN_ID: "tests-0001"