2025-03-24 15:29:34 +01:00
|
|
|
name: Tests
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
2025-05-27 13:53:38 +02:00
|
|
|
paths:
|
|
|
|
|
- "src/**"
|
|
|
|
|
- "pyproject.toml"
|
|
|
|
|
- "uv.lock"
|
2025-03-24 15:29:34 +01:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
test:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
container: catthehacker/ubuntu:act-latest
|
|
|
|
|
permissions:
|
|
|
|
|
contents: read
|
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
2025-09-26 15:49:43 +02:00
|
|
|
uses: actions/checkout@v5
|
2025-03-24 15:29:34 +01:00
|
|
|
|
2025-09-26 15:52:17 +02:00
|
|
|
- name: Setup Node.js
|
2025-10-23 03:01:55 +00:00
|
|
|
uses: actions/setup-node@v6
|
2025-09-26 15:52:17 +02:00
|
|
|
with:
|
2025-10-28 03:01:41 +00:00
|
|
|
node-version: "24"
|
2025-09-26 15:52:17 +02:00
|
|
|
|
2025-03-24 15:29:34 +01:00
|
|
|
- name: Install uv
|
2025-10-26 03:01:29 +00:00
|
|
|
uses: https://github.com/astral-sh/setup-uv@v7
|
2025-03-24 15:29:34 +01:00
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
|
run: uv run --env-file=.env.example pytest
|