Debian Codegraph @

.github/workflows/test-pyodide.yml

raw
1 name: Test in Pyodide with shot-scraper
2
3 on:
4 push:
5 pull_request:
6 workflow_dispatch:
7
8 permissions:
9 contents: read
10
11 jobs:
12 test:
13 runs-on: ubuntu-latest
14 steps:
15 - uses: actions/checkout@v7
16 - name: Set up Python 3.10
17 uses: actions/setup-python@v7
18 with:
19 python-version: "3.10"
20 cache: 'pip'
21 cache-dependency-path: '**/setup.py'
22 - name: Cache Playwright browsers
23 uses: actions/cache@v6
24 with:
25 path: ~/.cache/ms-playwright/
26 key: ${{ runner.os }}-browsers
27 - name: Install Playwright dependencies
28 run: |
29 pip install shot-scraper build
30 shot-scraper install
31 - name: Run test
32 run: |
33 ./test-in-pyodide-with-shot-scraper.sh