diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2edb6f4..ce41118 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,9 @@ jobs: run: poetry run black --check . - name: Run tests run: poetry run pytest --cov=sigma --cov-report term --cov-report xml:cov.xml -vv + - name: Store coverage for badge + if: ${{ runner.os == 'Linux' }} + run: poetry run python print-coverage.py >> $GITHUB_ENV - name: Create coverage badge if: ${{ github.repository == 'SigmaHQ/pySigma-validators-sigmaHQ' && github.event_name == 'push' && runner.os == 'Linux' }} uses: schneegans/dynamic-badges-action@v1.1.0