ytdl-sub/.github/workflows/ci.yaml
2022-05-06 22:54:04 -07:00

35 lines
No EOL
799 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: |
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