Skip to content

Commit

Permalink
attempt tokenless upload
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Aug 12, 2024
1 parent f9216fd commit 936dbc4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Run Tests
on: push
jobs:
python:
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -20,10 +23,10 @@ jobs:
pip install -e .[testing]
- name: Run pytest
run: |
pytest --cache-clear --cov=./ --cov-report=xml --cov-report=html
pytest --cache-clear --cov=src/ --cov-report=xml --cov-report=html
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true
files: ./coverage.xml
env_vars: RUNNER_OS,PYTHON_VERSION,CI,GITHUB_SHA,RUNNER_OS,GITHUB_RUN_ID

0 comments on commit 936dbc4

Please sign in to comment.