ci: nix-ify pipeline
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 1m28s
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 1m28s
This commit is contained in:
parent
eaf7fe9b2a
commit
d5535fe2d0
1 changed files with 11 additions and 20 deletions
|
|
@ -7,31 +7,23 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build-and-lint:
|
build-and-lint:
|
||||||
name: Lint, Check & Test
|
name: Lint, Check & Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: nix
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Repository
|
- name: Check out Repository
|
||||||
uses: https://git.konstantinfickel.de/actions/checkout@v4
|
uses: https://git.konstantinfickel.de/actions/checkout@v4
|
||||||
|
|
||||||
- name: Install uv
|
- run: nix --version
|
||||||
uses: astral-sh/setup-uv@v5
|
- run: nix flake check
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
version: "0.7.14"
|
|
||||||
|
|
||||||
- name: Set up python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version-file: "pyproject.toml"
|
|
||||||
|
|
||||||
- name: Install the project
|
- name: Install the project
|
||||||
run: uv sync --locked --all-extras --dev
|
run: nix develop .#impure --command bash -c "uv sync --locked --all-extras --dev"
|
||||||
|
|
||||||
- name: Test with PyTest
|
- name: Test with PyTest
|
||||||
run: uv run pytest --junit-xml test-report.xml
|
run: nix develop .#impure --command bash -c "uv run pytest --junit-xml test-report.xml"
|
||||||
|
|
||||||
- name: Report test results
|
- name: Report test results
|
||||||
uses: dorny/test-reporter@v2
|
uses: https://github.com/dorny/test-reporter.git@v2
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
name: PyTest Results
|
name: PyTest Results
|
||||||
|
|
@ -39,5 +31,4 @@ jobs:
|
||||||
reporter: java-junit
|
reporter: java-junit
|
||||||
|
|
||||||
- name: Check with PyRight
|
- name: Check with PyRight
|
||||||
run: uv run pyright
|
run: nix develop .#impure --command bash -c "uv run pyright"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue