mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-02-27 22:43:15 +08:00
Run tests in CI in parallel (#1254)
* Run tests in CI in parallel * make tests automatically open/close playwright * fix parallel tests and screenshots * fix capturing screenshots for non-failing tests * cleanup * cleanup * format * log js errors * provide screenshots as artifacts * remove old scripts
This commit is contained in:
10
.github/workflows/main.yaml
vendored
10
.github/workflows/main.yaml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
uv sync
|
||||
mkdir data
|
||||
- name: Run tests
|
||||
run: uv run manage.py test bookmarks.tests
|
||||
run: uv run pytest -n auto
|
||||
e2e_tests:
|
||||
name: E2E Tests
|
||||
runs-on: ubuntu-latest
|
||||
@@ -59,4 +59,10 @@ jobs:
|
||||
npm run build
|
||||
uv run manage.py collectstatic
|
||||
- name: Run tests
|
||||
run: uv run manage.py test bookmarks.tests_e2e --pattern="e2e_test_*.py"
|
||||
run: uv run pytest bookmarks/tests_e2e -n auto -o "python_files=e2e_test_*.py"
|
||||
- name: Upload screenshots
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: e2e-screenshots
|
||||
path: test-results/screenshots
|
||||
|
||||
Reference in New Issue
Block a user