File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Notebook Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ workflow_dispatch :
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ ui-tests :
15+ name : Playwright UI tests
16+ runs-on : ubuntu-latest
17+ env :
18+ PLAYWRIGHT_BROWSERS_PATH : ${{ github.workspace }}/playwright/browsers
19+ PLAYWRIGHT_HTML_OUTPUT_DIR : ${{ github.workspace }}/playwright/report
20+ steps :
21+ - name : Checkout repository
22+ uses : actions/checkout@v6
23+ - name : Setup Pixi
24+ uses : prefix-dev/setup-pixi@v0.9.6
25+ with :
26+ pixi-version : v0.69.0
27+ cache : true
28+ environments : dev
29+ cache-write : ${{ github.event_name == 'push' && github.ref_name == 'main' }}
30+ - name : Install UI test dependencies
31+ run : pixi run install-ui-tests-deps
32+ - name : Cache Playwright browsers
33+ id : playwright-cache
34+ uses : actions/cache@v4
35+ with :
36+ path : ${{ env.PLAYWRIGHT_BROWSERS_PATH }}
37+ key : playwright-${{ runner.os }}-${{ hashFiles('ui-tests/package-lock.json') }}
38+ - name : Install Playwright browsers
39+ if : steps.playwright-cache.outputs.cache-hit != 'true'
40+ run : pixi run install-browsers
41+ - name : Run UI tests
42+ run : pixi run test-ui --reporter=github,html
43+ - name : Upload Playwright report
44+ if : always()
45+ uses : actions/upload-artifact@v4
46+ with :
47+ name : playwright-report
48+ path : ${{ env.PLAYWRIGHT_HTML_OUTPUT_DIR }}
49+ retention-days : 30
Original file line number Diff line number Diff line change 1- name : Test
1+ name : Test and linters
22
33on :
44 push :
You can’t perform that action at this time.
0 commit comments