Skip to content

yt-dlp migration (scdl v3.0.0) #69

yt-dlp migration (scdl v3.0.0)

yt-dlp migration (scdl v3.0.0) #69

Workflow file for this run

name: ci
on:
push:
branches: [ master ]
tags:
- 'v*'
pull_request:
branches: [ master ]
jobs:
test:
strategy:
matrix:
version: ['3.9', '3.13']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.version }}
version: '0.8.8'
- name: Install dependencies
run: uv sync
- name: Lint
if: '!cancelled()'
run: uv run ruff check --output-format=github
- name: Format check
if: '!cancelled()'
run: uv run ruff format --check
- name: Type check
if: '!cancelled()'
run: uv run mypy
- name: Install ffmpeg
run: |
sudo apt update
sudo apt install -yq --no-install-recommends ffmpeg
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
run: uv run pytest -vv --exitfirst
publish:
needs: test
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: 3.9
version: '0.8.8'
- name: Install dependencies
run: uv sync
- name: Build package
run: uv build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}