File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : API Pull Request
22
3+ permissions :
4+ contents : read # For actions/checkout
5+ id-token : write # For Codecov OIDC
6+
37on :
48 pull_request :
59 paths :
8084 env :
8185 PYTHON : ${{ matrix.python-version }}
8286 with :
83- token : ${{ secrets.CODECOV_TOKEN }}
8487 env_vars : PYTHON
88+ use_oidc : true
Original file line number Diff line number Diff line change 1- name : Run API tests with private package
1+ name : API Pull Request with Private Packages
2+
3+ permissions :
4+ contents : read # For actions/checkout
5+ id-token : write # For Codecov OIDC
26
37on :
48 pull_request :
@@ -24,7 +28,12 @@ defaults:
2428jobs :
2529 test :
2630 runs-on : depot-ubuntu-latest-16
27- name : API Tests
31+ name : API Unit Tests
32+
33+ strategy :
34+ max-parallel : 2
35+ matrix :
36+ python-version : ["3.11", "3.12"]
2837
2938 steps :
3039 - name : Cloning repo
3544
3645 - uses : actions/setup-python@v5
3746 with :
38- python-version : " 3.12 "
47+ python-version : ${{ matrix.python-version }}
3948 cache : poetry
4049
4150 - name : Install SAML Dependencies
5564 env :
5665 DOTENV_OVERRIDE_FILE : .env-ci
5766 run : make test
67+
68+ - name : Upload Coverage
69+ uses : codecov/codecov-action@v4
70+ env :
71+ PRIVATE_PACKAGES : " true"
72+ PYTHON : ${{ matrix.python-version }}
73+ with :
74+ env_vars : PRIVATE_PACKAGES,PYTHON
75+ use_oidc : true
You can’t perform that action at this time.
0 commit comments