streamd/.forgejo/workflows/ci.yml
Konstantin Fickel 1c08319fb5
Some checks failed
Continuous Integration / Lint, Check & Test (push) Failing after 44s
ci: add ruff to pipeline
2025-10-12 08:33:49 +02:00

37 lines
998 B
YAML

name: Continuous Integration
on:
push:
workflow_dispatch:
jobs:
build-and-lint:
name: Lint, Check & Test
runs-on: nix
steps:
- name: Check out Repository
uses: https://git.konstantinfickel.de/actions/checkout@v4
- run: nix --version
- run: nix flake check
- name: Install the project
run: nix develop .#impure --command bash -c "uv sync --locked --all-extras --dev"
- name: Test with PyTest
run: nix develop .#impure --command bash -c "uv run pytest --junit-xml test-report.xml"
- name: Report test results
uses: https://github.com/dorny/test-reporter.git@v2
if: ${{ !cancelled() }}
with:
name: PyTest Results
path: test-report.xml
reporter: java-junit
- name: Check with Ruff
run: nix develop .#impure --command bash -c "uv run ruff check"
- name: Check with PyRight
run: nix develop .#impure --command bash -c "uv run pyright"