From fd01c31c4a0bb6ec9e4d180c712e5ea5511b1967 Mon Sep 17 00:00:00 2001 From: jlightner Date: Fri, 3 Apr 2026 07:04:44 +0000 Subject: [PATCH] ci: use python-node runner image for fast dependency installs --- .forgejo/workflows/ci.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 1695651..1b09a41 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -8,24 +8,18 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: python-node 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: /tmp/venv/bin/pip install -e ".[dev]" + run: pip install -e ".[dev]" - name: Lint - run: /tmp/venv/bin/ruff check app/ tests/ + run: ruff check app/ tests/ - name: Run tests - run: /tmp/venv/bin/python -m pytest tests/ -v + run: python -m pytest tests/ -v