forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.71 KB
/
integration-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Integration Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: "requirements*.txt"
- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install --upgrade --upgrade-strategy eager -e .[dev]
- name: Build orion-ui
run: |
prefect dev build-ui
- name: Start orion
run: |
prefect orion start &
- name: Set up node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache-dependency-path: '**/package-lock.json'
- name: Get Playwright version
id: playwright-cache-key
run: |
echo "::set-output name=version::$(npx playwright -V)"
- name: Cache Playwright Browsers
id: cache-playwright-browsers
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: ${{ steps.playwright-cache-key.outputs.version }}-playwright-browsers
- name: Install Playwright Browsers
working-directory: ./orion-ui
run: npx playwright install --with-deps
- name: Run Playwright tests
working-directory: ./orion-ui
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: ./orion-ui/playwright-report/
retention-days: 30