mirror of
https://github.com/simonw/datasette.git
synced 2026-09-16 05:24:21 +02:00
- Only run push-triggered workflows on main; PRs are covered by pull_request, so branch commits no longer run everything twice - Test SQLite versions: single job, Python 3.13 + SQLite 3.25 - Fold coverage into the Python 3.14 test job (including serial tests) and remove test-coverage.yml; bump codecov-action to v5 - Cancel superseded in-progress runs on pull requests - Prettier now also runs on pull requests Claude-Session: https://claude.ai/code/session_012G7fa8HqJy9AkSjkocetAz
39 lines
940 B
YAML
39 lines
940 B
YAML
name: Test in Pyodide with shot-scraper
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- name: Set up Python 3.10
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.10"
|
|
cache: 'pip'
|
|
cache-dependency-path: '**/pyproject.toml'
|
|
- name: Cache Playwright browsers
|
|
uses: actions/cache@v6
|
|
with:
|
|
path: ~/.cache/ms-playwright/
|
|
key: ${{ runner.os }}-browsers
|
|
- name: Install Playwright dependencies
|
|
run: |
|
|
pip install shot-scraper build
|
|
shot-scraper install
|
|
- name: Run test
|
|
run: |
|
|
./test-in-pyodide-with-shot-scraper.sh
|