ci: provision pinned image runtime
Some checks failed
Quality gates / quality (pull_request) Failing after 2m49s

This commit is contained in:
Timmy 2026-08-22 23:43:31 +00:00
parent 517c8dbac3
commit f7a018de7e
2 changed files with 8 additions and 0 deletions

View File

@ -23,10 +23,15 @@ jobs:
with: with:
node-version: 22 node-version: 22
cache: npm cache: npm
- name: Set up pinned Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install reproducibly - name: Install reproducibly
run: | run: |
npm ci npm ci
python3 -m pip install --break-system-packages -r requirements-test.txt python3 -m pip install --break-system-packages -r requirements-test.txt
printf 'TIMMY_PYTHON=%s\n' "$(python3 -c 'import sys; print(sys.executable)')" >> "$GITHUB_ENV"
- name: Install browser - name: Install browser
run: npx playwright install --with-deps chromium run: npx playwright install --with-deps chromium
- name: Unit and security tests - name: Unit and security tests

View File

@ -17,6 +17,9 @@ test('Gitea CI gates pull requests and main with the reproducible quality suite'
assert.match(workflow, /fetch-depth: 0/); assert.match(workflow, /fetch-depth: 0/);
assert.match(workflow, /npm ci/); assert.match(workflow, /npm ci/);
assert.match(workflow, /python3 -m pip install --break-system-packages -r requirements-test\.txt/); assert.match(workflow, /python3 -m pip install --break-system-packages -r requirements-test\.txt/);
assert.match(workflow, /uses: actions\/setup-python@v5/);
assert.match(workflow, /python-version: ['"]3\.11['"]/);
assert.match(workflow, /TIMMY_PYTHON=.*sys\.executable/);
assert.match(workflow, /npm test/); assert.match(workflow, /npm test/);
assert.match(workflow, /npm run test:ui/); assert.match(workflow, /npm run test:ui/);
assert.match(workflow, /npm run test:photo/); assert.match(workflow, /npm run test:photo/);