From 82810af1dd975994e1416f332ce5c7f93dfffdfe Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Mon, 27 Jul 2026 10:47:44 +0200 Subject: [PATCH] feat: add cicd tests cli --- .gitea/workflows/add-new-service.yml | 9 ++++++++- .gitea/workflows/deploy.yml | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/add-new-service.yml b/.gitea/workflows/add-new-service.yml index 1c1c515..5c14811 100644 --- a/.gitea/workflows/add-new-service.yml +++ b/.gitea/workflows/add-new-service.yml @@ -18,11 +18,18 @@ jobs: uses: actions/checkout@v4 - name: Install and setup uv - uses: astral-sh/setup-uv@v5 + uses: actions/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 with: version: "latest" enable-cache: true # Speeds up runs by caching python dependencies # TODO: does this work? + - name: Install Python 3.10 + run: uv python install 3.10 + + - name: Run tests + run: | + cd scripts && uv run pytest + - name: Parse Service Directory Name id: parse_branch # Uses bash shell parameter elimination to strip 'feature/add-service-' from the front diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0e21c1f..09353e2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -44,6 +44,7 @@ jobs: - name: Install uv uses: actions/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 + - name: Install Python 3.10 run: uv python install 3.10