Skip to main content

.github/workflows/test.yml

1name: Test
3on:
4 push:
5 branches:
6 - main
8 pull_request:
9 branches:
10 - main
12jobs:
13 test:
14 strategy:
15 matrix:
16 python-version:
17 - "3.14"
19 runs-on: ubuntu-latest
21 steps:
22 - uses: actions/checkout@v6
24 - name: Set up Python
25 uses: actions/setup-python@v6
26 with:
27 python-version: ${{ matrix.python-version }}
28 cache: 'pip'
29 cache-dependency-path: 'dev_requirements.txt'
31 - name: Install dependencies
32 run: pip install -r dev_requirements.txt
34 - name: Check formatting
35 run: |
36 ruff check .
37 ruff format --check .
39 - name: Check types
40 run: ty check *.py
42 # I don't run tests in GitHub Actions because YouTube blocks yt-dlp
43 # without authentication, and I don't want to sort out passing cookies
44 # in CI for now -- I can run the tests locally, that's good enough.
45 # - name: Run tests
46 # run: pytest tests