* youtube.download_strategy split_video * almost working, need to deal with track_title and other overwrites * working test * ci ffmpeg * sudo -f * fix code block
36 lines
No EOL
838 B
YAML
36 lines
No EOL
838 B
YAML
name: ytld-sub CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10"]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get install -y ffmpeg
|
|
python -m pip install --upgrade pip
|
|
pip install -e .[lint,test]
|
|
- name: Run linters
|
|
run: |
|
|
./tools/linter check
|
|
- name: Run tests with coverage
|
|
run: |
|
|
./tools/test xml
|
|
- name: Upload code coverage to codecov.io
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
files: ./coverage.xml |