This commit is contained in:
parent
9d16212e2e
commit
1e0786b688
4 changed files with 123 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue