ytdl-sub/.github/workflows/build_lint_test.yaml
2022-04-29 07:19:10 +00:00

34 lines
811 B
YAML

name: ytld-sub build
on: [push]
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 .
- name: Run linters
run: |
pip install .[lint]
./tools/linter check
- name: Run tests with coverage
run: |
pip install .[test]
./tools/test
- name: Upload test coverage
uses: actions/upload-artifact@v3
with:
name: test-coverage
path: htmlcov/index.html
retention-days: 5