mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-17 01:26:16 +03:00
* Bump actions/checkout v7.0.0 => v7.0.1 * Bump actions/setup-node v6.4.0 => v7.0.0 * Bump actions/setup-python v6.3.0 => v7.0.0 * Bump denoland/setup-deno v2.0.4 => v2.0.5 * Bump github/codeql-action v4.36.3 => v4.37.7 * Bump pypa/gh-action-pypi-publish v1.14.0 => v1.14.2 * Bump zizmorcore/zizmor-action v0.5.7 => v0.6.2 Authored by: dlp-bot
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Set up Python 3.10
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install test requirements
|
|
shell: bash
|
|
run: |
|
|
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
|
|
python -m pip install -U --require-hashes -r "bundle/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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: '3.14'
|
|
- name: Install dev dependencies
|
|
run: |
|
|
python -m pip install -U --require-hashes -r "bundle/requirements/pip.txt"
|
|
python -m pip install -U --require-hashes -r "bundle/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" )
|