quick-test.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 --include test
  18. - name: Run tests
  19. run: |
  20. python3 -m yt_dlp -v || true
  21. python3 ./devscripts/run_tests.py core
  22. check:
  23. name: Code check
  24. if: "!contains(github.event.head_commit.message, 'ci skip all')"
  25. runs-on: ubuntu-latest
  26. steps:
  27. - uses: actions/checkout@v4
  28. - uses: actions/setup-python@v5
  29. with:
  30. python-version: '3.8'
  31. - name: Install dev dependencies
  32. run: python3 ./devscripts/install_deps.py -o --include static-analysis
  33. - name: Make lazy extractors
  34. run: python3 ./devscripts/make_lazy_extractors.py
  35. - name: Run ruff
  36. run: ruff check --output-format github .
  37. - name: Run autopep8
  38. run: autopep8 --diff .