-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.09 KB
/
Copy pathci.yml
File metadata and controls
40 lines (34 loc) · 1.09 KB
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
name: CI
on:
push:
branches: [main]
paths-ignore: ["**.md", "LICENSE"] # a typo fix should not cost minutes
pull_request:
workflow_dispatch:
# Least privilege. A called workflow can only reduce this, never add to it.
permissions:
contents: read
# Concurrency belongs in the CALLER: it owns the trigger, so it owns the
# question of what supersedes what.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
smoke:
uses: suryakulshreshtha/.github/.github/workflows/python-playwright.yml@v1
with:
browsers: '["chromium"]'
pytest-args: -m smoke
# API tests need no browser at all -- saves ~90s of install per run.
api:
uses: suryakulshreshtha/.github/.github/workflows/python-playwright.yml@v1
with:
needs-browser: false
lint-paths: ""
pytest-args: -m api
regression:
needs: smoke # fail fast, and fail cheap
uses: suryakulshreshtha/.github/.github/workflows/python-playwright.yml@v1
with:
browsers: '["chromium"]'
pytest-args: -m "regression and not slow" -n auto