Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to octocov #7

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: ci
on:
pull_request:
push:
branches:
- main

jobs:
test:
Expand Down Expand Up @@ -33,11 +35,7 @@ jobs:
run: poetry install
- name: Run tests
run: poetry run pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: cov.xml
- uses: k1LoW/octocov-action@v1

check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -67,6 +65,7 @@ jobs:
run: poetry run ruff check --output-format github
- name: Run pyright
run: poetry run pyright

format:
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 20 additions & 0 deletions .octocov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
coverage:
if: true
paths:
- cov.xml
testExecutionTime:
if: true
diff:
if: is_pull_request
datastores:
- artifact://${GITHUB_REPOSITORY}
body:
if: is_pull_request
hideFooterLink: true
summary:
if: true
hideFooterLink: true
report:
if: is_default_branch
datastores:
- artifact://${GITHUB_REPOSITORY}