ytdl-sub/.github/workflows/ci.yaml
Jesse Bannon 1620c3a42d
youtube.download_strategy split_video (#76)
* 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
2022-06-18 23:12:10 -07:00

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