-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 1.14 KB
/
test.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
---
name: test-wf
on: pull_request
jobs:
test-all:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install Dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get update && sudo apt-get install xvfb
timeout-minutes: 1
- name: Install choreographer
run: uv sync --all-extras
- name: Install google-chrome-for-testing
run: uv run choreo_get_browser
- name: Diagnose
run: uv run choreo_diagnose --no-run
timeout-minutes: 1
- name: Test
if: ${{ ! runner.debug && matrix.os != 'ubuntu-latest' }}
run: uv run poe test
timeout-minutes: 7
- name: Test (Linux)
if: ${{ ! runner.debug && matrix.os == 'ubuntu-latest' }}
run: xvfb-run uv run poe test
timeout-minutes: 7
- name: Test (Debug)
if: runner.debug
run: uv run poe debug-test