Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
157 changes: 0 additions & 157 deletions .github/workflows/playwright-tests.yml

This file was deleted.

Loading