Added github workflow for integ tests

This commit is contained in:
Max Berger
2026-03-04 20:43:49 +01:00
parent aba14178a2
commit 326553915f
2 changed files with 28 additions and 1 deletions

27
.github/workflows/integ_test.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Integration Tests
on: [push, pull_request]
jobs:
integ-test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
run: pip install uv
- name: Install Playwright Browsers
run: uv run --extra integ_test playwright install --with-deps
- name: Run Integration Tests
run: uv run --extra integ_test pytest --junitxml=pytest-results.xml integ_tests
- uses: mikepenz/action-junit-report@v6
if: ${{ failure() && (github.event.pull_request.head.repo.full_name != github.repository) }}
with:
report_paths: 'pytest-results.xml'
annotate_only: true # forked repo cannot write to checks so just do annotations
- uses: mikepenz/action-junit-report@v6
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
with:
report_paths: 'pytest-results.xml'

2
.gitignore vendored
View File

@@ -23,6 +23,6 @@ coverage.xml
.vscode
.sass-cache
Gemfile.lock
pytest-results.xml
pytestdebug.log
uv.lock