quick-test.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Quick Test
  2. on: [push, pull_request]
  3. permissions:
  4. contents: read
  5. jobs:
  6. tests:
  7. name: Core Test
  8. if: "!contains(github.event.head_commit.message, 'ci skip all')"
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v4
  12. - name: Set up Python 3.8
  13. uses: actions/setup-python@v5
  14. with:
  15. python-version: '3.8'
  16. - name: Install test requirements
  17. run: python3 ./devscripts/install_deps.py -o --include test
  18. - name: Run tests
  19. timeout-minutes: 15
  20. run: |
  21. python3 -m yt_dlp -v || true
  22. python3 ./devscripts/run_tests.py --pytest-args '--reruns 2 --reruns-delay 3.0' 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 .