Set up nix flakes
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
polyfloyd 2025-07-17 16:58:03 +02:00
parent 9d16212e2e
commit 1e0786b688
4 changed files with 123 additions and 12 deletions

View file

@ -2,30 +2,24 @@ name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 1 * *' # Monthly
env:
SLIGRO_USERNAME: ${{ secrets.SLIGRO_USERNAME }}
SLIGRO_PASSWORD: ${{ secrets.SLIGRO_PASSWORD }}
defaults:
run:
shell: nix develop --command {0}
jobs:
pytest:
runs-on: docker
container:
image: alpine:latest
test:
runs-on: nix
steps:
- run: apk add nodejs py3-pip ruff
- uses: actions/checkout@v4
- run: pip install -r requirements.txt --break-system-packages
- run: pytest
- run: ruff check