]>
Commit | Line | Data |
---|---|---|
3bcaa37b | 1 | name: Quick Test |
298f597b | 2 | on: [push, pull_request] |
c789fb77 A |
3 | permissions: |
4 | contents: read | |
5 | ||
0c0ff18f | 6 | jobs: |
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 |
b8a433aa | 18 | run: python3 ./devscripts/install_deps.py --include dev |
0c0ff18f | 19 | - name: Run tests |
71df9b7f | 20 | run: | |
21 | python3 -m yt_dlp -v || true | |
2d1d683a | 22 | python3 ./devscripts/run_tests.py core |
0c0ff18f | 23 | flake8: |
24 | name: Linter | |
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 |
0c0ff18f | 30 | - name: Install flake8 |
b8a433aa | 31 | run: python3 ./devscripts/install_deps.py -o --include dev |
3fb4e21b | 32 | - name: Make lazy extractors |
b8a433aa | 33 | run: python3 ./devscripts/make_lazy_extractors.py |
0c0ff18f | 34 | - name: Run flake8 |
060ac762 | 35 | run: flake8 . |