update
Some checks failed
Tests / test (macos-latest, 3.10) (push) Waiting to run
Tests / test (macos-latest, 3.8) (push) Waiting to run
Tests / test (macos-latest, 3.9) (push) Waiting to run
Tests / test (ubuntu-latest, 3.9) (push) Waiting to run
Tests / test (windows-latest, 3.10) (push) Waiting to run
Tests / test (windows-latest, 3.8) (push) Waiting to run
Tests / test (windows-latest, 3.9) (push) Waiting to run
Tests / test (ubuntu-latest, 3.10) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.8) (push) Has been cancelled

This commit is contained in:
2025-03-09 04:44:55 -07:00
parent ad11faf1b0
commit 224fbde0a4
7 changed files with 174 additions and 117 deletions

View File

@@ -2,9 +2,14 @@ name: Tests
on:
push:
branches: [master]
paths:
- "src/**"
- "tests/**"
pull_request:
branches: [master]
paths:
- "src/**"
- "tests/**"
jobs:
test:
@@ -38,7 +43,7 @@ jobs:
- name: Lint with flake8
run: |
flake8 src/jimaku_dl
flake8 src/jimaku_dl --max-line-length 88
- name: Check formatting with black
run: |
@@ -50,10 +55,18 @@ jobs:
- name: Test with pytest
run: |
pytest --cov=jimaku_dl --cov-report=xml
pytest --cov-branch --cov=jimaku_dl --cov-report=xml
pytest --cov --junitxml=junit.xml -o junit_family=legacy
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}