ci: split workflow into check and build jobs
This commit is contained in:
parent
b4848bb661
commit
ce5e476b23
1 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue