Skip to content

Update README.md

Update README.md #25

Workflow file for this run

name: tests
on:
push:
branches: [ "**" ]
pull_request:
# optional: cancel older runs on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pytest:
name: Pytest (Linux, Py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests (with coverage)
run: |
python -m pytest -q --cov=python_project_template_AS --cov-report=term --cov-report=html
- name: Upload HTML coverage
if: always()
uses: actions/upload-artifact@v4
with:
name: htmlcov-${{ matrix.python-version }}
path: htmlcov
if-no-files-found: ignore
lint:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit
run: |
pre-commit run --all-files || true