mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-19 05:42:34 +00:00
* Fix PyPy dependency issue with cffi * Export requirements files from dependency groups * Simplify bundle targets & rework build flow * Code cleanup & type annotation fixes * Update FFmpeg-Builds status in README Authored by: bashonly
70 lines
2.3 KiB
YAML
70 lines
2.3 KiB
YAML
name: Quick Test
|
|
on:
|
|
push:
|
|
branches: ['master']
|
|
# This workflow contains required checks and needs to run for EVERY pull_request
|
|
pull_request:
|
|
branches: ['**']
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: quick-test-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
tests:
|
|
# Required check; do not change name
|
|
name: Core test
|
|
if: ${{ !contains(github.event.head_commit.message, ':ci skip all') }}
|
|
permissions:
|
|
contents: read
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Set up Python 3.10
|
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install test requirements
|
|
shell: bash
|
|
run: |
|
|
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
|
|
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-test.txt"
|
|
- name: Run tests
|
|
timeout-minutes: 15
|
|
shell: bash
|
|
run: |
|
|
python3 -m yt_dlp -v || true
|
|
python3 ./devscripts/run_tests.py --pytest-args '--reruns 2 --reruns-delay 3.0' core
|
|
|
|
check:
|
|
# Required check; do not change name
|
|
name: Code check
|
|
if: ${{ !contains(github.event.head_commit.message, ':ci skip all') }}
|
|
permissions:
|
|
contents: read
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: '3.14'
|
|
- name: Install dev dependencies
|
|
run: |
|
|
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-pip.txt"
|
|
python -m pip install -U --require-hashes -r "bundle/requirements/requirements-static-analysis.txt"
|
|
- name: Make lazy extractors
|
|
run: python ./devscripts/make_lazy_extractors.py
|
|
- name: Run ruff
|
|
run: ruff check --output-format github .
|
|
- name: Run autopep8
|
|
run: autopep8 --diff .
|
|
- name: Check file mode
|
|
shell: bash
|
|
run: git ls-files --format="%(objectmode) %(path)" yt_dlp/ | ( ! grep -v "^100644" )
|