Skip to content

Commit

Permalink
Add tox job for write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
tanwigeetika1618 committed Oct 3, 2024
1 parent 2f65c74 commit 9dad5e9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,30 @@ jobs:
with:
include-hidden-files: true
delete-merged: true

tox:
runs-on: ubuntu-latest
permissions:
id-token: write # Allow GitHub Actions to request OIDC tokens for authentication
contents: read # Permission to read repository content

steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Check out the repository
uses: actions/checkout@v4

- name: Install dependencies
run: python3 -m pip install tox

- name: Run Tox
run: python3 -m tox

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
use_oidc: true

0 comments on commit 9dad5e9

Please sign in to comment.