ytdl-sub/.github/workflows/ci.yaml
Jesse Bannon 61c5a22933
[REFACTOR] Move chapter timestamps support into chapter plugin, remove from youtube.video (#193)
Introduces breaking changes to youtube.video.chapter_timestamps. Please use chapters.embed_chapter_timestamps instead to embed timestamps into a video
2022-08-26 23:08:53 -07:00

37 lines
No EOL
866 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 update
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