run pytest in pipeline with uv
This commit is contained in:
parent
41ab33bee7
commit
f0e34c2419
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/tests.yaml
Normal file
23
.forgejo/workflows/tests.yaml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: catthehacker/ubuntu:act-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install uv
|
||||||
|
uses: https://github.com/astral-sh/setup-uv@v5
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: uv run --env-file=.env.example pytest
|
Loading…
Add table
Add a link
Reference in a new issue