Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPDX-FileCopyrightText: Contributors to the utility-route-project and Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

name: Quality checks
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize, closed]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install project
shell: bash
run: poetry install
- name: Run pre-commit
shell: bash
run: poetry run pre-commit run --all-files
- name: Run unit and integration tests
shell: bash
run: poetry run pytest tests