ci: split workflow into check and build jobs

This commit is contained in:
Konstantin Fickel 2026-02-15 17:31:18 +01:00
parent b4848bb661
commit ce5e476b23
Signed by: kfickel
GPG key ID: A793722F9933C1A5

View file

@ -5,7 +5,7 @@ on:
workflow_dispatch:
jobs:
build-and-lint:
check:
name: Lint, Check & Test
runs-on: nix
@ -16,8 +16,12 @@ jobs:
- run: nix --version
- run: nix flake check
- name: Install the project
run: 'nix develop .#impure --command bash -c "uv sync --locked --all-extras --dev"'
build:
name: Build Package
runs-on: nix
- name: Test with PyTest
run: nix develop .#impure --command bash -c "uv run pytest --junit-xml test-report.xml"
steps:
- name: Check out Repository
uses: https://git.konstantinfickel.de/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- run: nix build