From 7f2798d1119615eb8b870d32bd2160cb5d7ef3ab Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 1 Mar 2024 06:13:25 +0100 Subject: [PATCH 1/2] switch to octocov --- .github/workflows/ci.yaml | 7 ++----- .octocov.yml | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .octocov.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a30267c..7c00360 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,11 +33,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 @@ -67,6 +63,7 @@ jobs: run: poetry run ruff check --output-format github - name: Run pyright run: poetry run pyright + format: runs-on: ubuntu-latest steps: diff --git a/.octocov.yml b/.octocov.yml new file mode 100644 index 0000000..799b334 --- /dev/null +++ b/.octocov.yml @@ -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} From b47c35e69f2e0769a91a4224d88820daf371e3fa Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 1 Mar 2024 06:20:04 +0100 Subject: [PATCH 2/2] ci: only run on main branch --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7c00360..d767c59 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,6 +3,8 @@ name: ci on: pull_request: push: + branches: + - main jobs: test: