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

33 lines
775 B
YAML

name: Pylint
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: Test Coverage
id: html_preview
uses: pavi2410/html-preview-action@v2
with:
html_file: htmlcov/index.html