From 6fc4c1ae2bf0bb113410605c56e7bfe898ea77bc Mon Sep 17 00:00:00 2001 From: jlightner Date: Fri, 3 Apr 2026 06:25:26 +0000 Subject: [PATCH] ci: use node:22 base with Python installed for actions compatibility --- .forgejo/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 5583b41..1695651 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -8,18 +8,24 @@ on: jobs: test: - runs-on: python + runs-on: ubuntu-latest defaults: run: working-directory: services/api steps: - uses: actions/checkout@v4 + - name: Install Python + run: | + apt-get update && apt-get install -y python3 python3-pip python3-venv + python3 -m venv /tmp/venv + echo "PATH=/tmp/venv/bin:$PATH" >> $GITHUB_ENV + - name: Install dependencies - run: pip install -e ".[dev]" + run: /tmp/venv/bin/pip install -e ".[dev]" - name: Lint - run: ruff check app/ tests/ + run: /tmp/venv/bin/ruff check app/ tests/ - name: Run tests - run: python -m pytest tests/ -v + run: /tmp/venv/bin/python -m pytest tests/ -v