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:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-lint:
|
check:
|
||||||
name: Lint, Check & Test
|
name: Lint, Check & Test
|
||||||
runs-on: nix
|
runs-on: nix
|
||||||
|
|
||||||
|
|
@ -16,8 +16,12 @@ jobs:
|
||||||
- run: nix --version
|
- run: nix --version
|
||||||
- run: nix flake check
|
- run: nix flake check
|
||||||
|
|
||||||
- name: Install the project
|
build:
|
||||||
run: 'nix develop .#impure --command bash -c "uv sync --locked --all-extras --dev"'
|
name: Build Package
|
||||||
|
runs-on: nix
|
||||||
|
|
||||||
- name: Test with PyTest
|
steps:
|
||||||
run: nix develop .#impure --command bash -c "uv run pytest --junit-xml test-report.xml"
|
- 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