Skip to content

Commit

Permalink
Merge pull request #515 from lbluque/main
Browse files Browse the repository at this point in the history
Upload coverage only on main
  • Loading branch information
lbluque authored Feb 8, 2025
2 parents 40dcfbc + 2bdf79e commit 42e8d0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
pytest --cov=smol --splits 8 --group ${{ matrix.split }} --durations-path tests/.test_durations tests
- name: Upload coverage
if: ${{ matrix.config.python == '3.12' && github.event_name == 'push' }}
if: ${{ matrix.config.python == '3.12' && github.ref == 'refs/heads/main'}}
uses: actions/upload-artifact@v4
with:
include-hidden-files: true
Expand All @@ -59,6 +59,7 @@ jobs:
if-no-files-found: error

coverage:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: test
steps:
Expand Down

0 comments on commit 42e8d0e

Please sign in to comment.