@@ -4,43 +4,46 @@ on: [push, pull_request]
44
55jobs :
66 test :
7- runs-on : macos -latest
7+ runs-on : ubuntu -latest
88 strategy :
99 matrix :
1010 python-version : ["3.10", "3.11", "3.12", "3.13", "3.14"]
1111 steps :
12- - uses : actions/checkout@v4
12+ - uses : actions/checkout@v6
1313 - name : Set up Python ${{ matrix.python-version }}
14- uses : actions/setup-python@v5
14+ uses : actions/setup-python@v6
1515 with :
1616 python-version : ${{ matrix.python-version }}
1717 cache : ' pip'
18- cache-dependency-path : setup.py
18+ cache-dependency-path : pyproject.toml
1919 - name : Cache Playwright browsers
20- uses : actions/cache@v4
20+ uses : actions/cache@v5
2121 with :
2222 path : ~/.cache/ms-playwright/
2323 key : ${{ runner.os }}-browsers
2424 - name : Install dependencies
2525 run : |
26- pip install -e '.[test]'
26+ pip install -e . --group dev
2727 - name : Install Playwright dependencies
2828 run : |
2929 python -m playwright install-deps
3030 shot-scraper install
3131 shot-scraper install -b firefox
3232 shot-scraper install -b webkit
33+ - name : Test Playwright startup time
34+ run : |
35+ time python -c "from playwright.sync_api import sync_playwright; p = sync_playwright().start(); b = p.chromium.launch(); b.close(); p.stop(); print('OK')"
3336 - name : Run tests
3437 run : |
35- pytest
38+ pytest -vv
3639 - name : Check if cog needs to be run
3740 run : |
3841 cog --check docs/*.md
3942 - name : Run test examples
4043 run : |
4144 tests/run_examples.sh
4245 - name : Archive examples
43- uses : actions/upload-artifact@v4
46+ uses : actions/upload-artifact@v6
4447 with :
4548 name : examples-${{ matrix.python-version }}
4649 path : examples/*
0 commit comments