Skip to content

better git system handling for tests #71

better git system handling for tests

better git system handling for tests #71

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: "Test Suite and Linting"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Add uv to PATH
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Check uv version
run: uv --version
- name: Install dependencies
run: |
uv pip install --system -e ".[dev,datasets]"
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Run tests
run: |
MPLBACKEND=Agg uv run pytest -v -m "not slow"
- name: Run linting
run: |
uv run ruff check .