diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 8bdd38b46..13b6def9d 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -68,7 +68,7 @@ jobs: cd lib/poseidon_core && poetry run pip install 'setuptools==64.0.3' && poetry run pytest --cov-report term-missing --cov=. --cov-report=xml && cd ../../ - name: Upload coverage uses: codecov/codecov-action@v4 - if: github.repository == 'faucetsdn/poseidon' && github.event_name == 'push' + if: github.repository == 'faucetsdn/poseidon' && github.ref_name == 'main' with: token: ${{ secrets.CODECOV_TOKEN }} files: /home/runner/work/poseidon/poseidon/lib/poseidon_api/coverage.xml,/home/runner/work/poseidon/poseidon/lib/poseidon_cli/coverage.xml,/home/runner/work/poseidon/poseidon/lib/poseidon_core/coverage.xml