Andrew/refactor tab api #485
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: test-wf | |
on: | |
pull_request: | |
push: | |
tags-ignore: | |
- v* | |
jobs: | |
test-all: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
PYTHONTRACEMALLOC: "1" | |
PYTHONWARNINGS: "error::ResourceWarning" | |
defaults: | |
run: | |
working-directory: ./src/py/ | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: "./src/py/pyproject.toml" | |
- name: Install dependencies | |
run: > | |
uv sync | |
--no-sources | |
--all-extras | |
- name: Install google-chrome-for-testing | |
run: uv run --no-sync kaleido_get_chrome -v | |
- name: Test mocker | |
run: > | |
uv run | |
--no-sync kaleido_mocker | |
--random 50 | |
--logistro-level INFO | |
--n 1 | |
--timeout 200 | |
- name: Test | |
if: ${{ ! runner.debug && matrix.os != 'ubuntu-latest' }} | |
run: uv run --no-sync poe test | |
timeout-minutes: 7 | |
- name: Test (Linux) | |
if: ${{ ! runner.debug && matrix.os == 'ubuntu-latest' }} | |
run: xvfb-run uv run --no-sync poe test | |
timeout-minutes: 7 | |
- name: Test (Debug) | |
if: runner.debug | |
run: uv run --no-sync poe debug-test | |
- name: Test (Debug, Linux) | |
if: ${{ runner.debug && matrix.os == 'ubuntu-latest' }} | |
run: xvfb-run uv run --no-sync poe debug-test | |
timeout-minutes: 7 |