Skip to content

Monumenten Onzelfstandig #697

Monumenten Onzelfstandig

Monumenten Onzelfstandig #697

Workflow file for this run

name: CICD
on:
workflow_dispatch:
push:
branches: [main, "release/**"]
pull_request:
branches: [main, "release/**"]
jobs:
CI:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["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: Cache pre-commit environment
uses: actions/cache@v4
with:
path: |
~/.cache/pre-commit
./.pre-commit
key: ${{ runner.os }}-precommit-${{ hashFiles('.pre-commit-config.yaml') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-precommit-${{ matrix.python-version }}-
${{ runner.os }}-precommit-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[test]"
- name: Run pre-commit hooks
run: pre-commit run --all-files
- name: Run pre-push hooks
run: pre-commit run --all-files --hook-stage pre-push
- name: Run pytest
run: python -m pytest --junitxml=pytest-report.xml
- name: Produce test summary
uses: test-summary/action@v2
with:
paths: "pytest-report.xml"
if: always()