Skip to content

Add .all-contributorsrc configuration (#13) #7

Add .all-contributorsrc configuration (#13)

Add .all-contributorsrc configuration (#13) #7

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pre-commit:
name: Pre-commit checks
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: pre-commit/action@v3.0.1
test:
name: Tests
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]" || pip install -e .
pip install pytest pytest-cov
- name: Run tests
run: |
# Exit code 5 means no tests were collected - don't fail in that case
pytest || [ $? -eq 5 ]