]> jfr.im git - yt-dlp.git/blob - .github/workflows/quick-test.yml
[misc] Add `hatch`, `ruff`, `pre-commit` and improve dev docs (#7409)
[yt-dlp.git] / .github / workflows / quick-test.yml
1 name: Quick Test
2 on: [push, pull_request]
3 permissions:
4 contents: read
5
6 jobs:
7 tests:
8 name: Core Test
9 if: "!contains(github.event.head_commit.message, 'ci skip all')"
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v4
13 - name: Set up Python 3.8
14 uses: actions/setup-python@v5
15 with:
16 python-version: '3.8'
17 - name: Install test requirements
18 run: python3 ./devscripts/install_deps.py --include test
19 - name: Run tests
20 run: |
21 python3 -m yt_dlp -v || true
22 python3 ./devscripts/run_tests.py core
23 check:
24 name: Code check
25 if: "!contains(github.event.head_commit.message, 'ci skip all')"
26 runs-on: ubuntu-latest
27 steps:
28 - uses: actions/checkout@v4
29 - uses: actions/setup-python@v5
30 with:
31 python-version: '3.8'
32 - name: Install dev dependencies
33 run: python3 ./devscripts/install_deps.py -o --include static-analysis
34 - name: Make lazy extractors
35 run: python3 ./devscripts/make_lazy_extractors.py
36 - name: Run ruff
37 run: ruff check --output-format github .
38 - name: Run autopep8
39 run: autopep8 --diff .