]> jfr.im git - yt-dlp.git/blame - .github/workflows/quick-test.yml
fix motherless
[yt-dlp.git] / .github / workflows / quick-test.yml
CommitLineData
3bcaa37b 1name: Quick Test
298f597b 2on: [push, pull_request]
c789fb77
A
3permissions:
4 contents: read
5
0c0ff18f 6jobs:
7 tests:
c25228e5 8 name: Core Test
3bcaa37b 9 if: "!contains(github.event.head_commit.message, 'ci skip all')"
0c0ff18f 10 runs-on: ubuntu-latest
11 steps:
5438593a 12 - uses: actions/checkout@v4
f9fb3ce8 13 - name: Set up Python 3.8
b14e818b 14 uses: actions/setup-python@v5
0c0ff18f 15 with:
f9fb3ce8 16 python-version: '3.8'
982ee69a 17 - name: Install test requirements
e897bd82 18 run: python3 ./devscripts/install_deps.py --include test
0c0ff18f 19 - name: Run tests
71df9b7f 20 run: |
21 python3 -m yt_dlp -v || true
2d1d683a 22 python3 ./devscripts/run_tests.py core
e897bd82
SS
23 check:
24 name: Code check
3bcaa37b 25 if: "!contains(github.event.head_commit.message, 'ci skip all')"
0c0ff18f 26 runs-on: ubuntu-latest
27 steps:
5438593a 28 - uses: actions/checkout@v4
b14e818b 29 - uses: actions/setup-python@v5
216f6a3c 30 with:
31 python-version: '3.8'
e897bd82
SS
32 - name: Install dev dependencies
33 run: python3 ./devscripts/install_deps.py -o --include static-analysis
3fb4e21b 34 - name: Make lazy extractors
b8a433aa 35 run: python3 ./devscripts/make_lazy_extractors.py
e897bd82
SS
36 - name: Run ruff
37 run: ruff check --output-format github .
38 - name: Run autopep8
39 run: autopep8 --diff .