Skip to content

feat: Download videos by bilibili author mid #13

feat: Download videos by bilibili author mid

feat: Download videos by bilibili author mid #13

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7.1"
- name: Install dependencies
run: |
poetry install
- name: ruff
run: |
poetry run ruff . --fix --exit-non-zero-on-fix
- name: mypy
run: |
poetry run mypy spiders_for_all
- name: Run code coverage
run: |
poetry run coverage run -m unittest discover -s tests
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}