[Chore] Add custom CI Docker image with Node.js 24, pnpm 10, and uv (#268)

This is meant to drastically speed up CI because it skips the lengthy installation.

Co-authored-by: jebus <lorsbach@envipath.com>
Reviewed-on: enviPath/enviPy#268
Co-authored-by: Tobias O <tobias.olenyi@envipath.com>
Co-committed-by: Tobias O <tobias.olenyi@envipath.com>
This commit is contained in:
2025-12-17 23:06:58 +13:00
committed by jebus
parent 4bf20e62ef
commit 9db4806d75
4 changed files with 102 additions and 26 deletions

View File

@ -10,6 +10,11 @@ jobs:
test:
if: ${{ !contains(gitea.event.pull_request.title, 'WIP') }}
runs-on: ubuntu-latest
container:
image: git.envipath.com/envipath/envipy-ci:latest
credentials:
username: ${{ secrets.CI_REGISTRY_USER }}
password: ${{ secrets.CI_REGISTRY_PASSWORD }}
services:
postgres:
@ -78,10 +83,8 @@ jobs:
- name: Run frontend tests
run: |
source .venv/bin/activate
python manage.py test --tag frontend
.venv/bin/python manage.py test --tag frontend
- name: Run Django tests
run: |
source .venv/bin/activate
python manage.py test tests --exclude-tag slow --exclude-tag frontend
.venv/bin/python manage.py test tests --exclude-tag slow --exclude-tag frontend