1- # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
1+ name : tests
32
4- name : tox
3+ permissions :
4+ contents : read
55
66on :
77 push :
@@ -13,28 +13,40 @@ jobs:
1313 test :
1414
1515 runs-on : ubuntu-latest
16+ permissions :
17+ contents : read
18+ id-token : write # OIDC authentication with Codecov
1619 strategy :
1720 fail-fast : false
1821 matrix :
19- python-version : ['3.10', '3.11', '3.12', '3.13', '3.14']
22+ python-version : ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15' ]
2023
2124 steps :
22- - uses : actions/checkout@v5
25+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26+ with :
27+ persist-credentials : false
2328 - name : Set up Python ${{ matrix.python-version }}
24- uses : actions/setup-python@v6
29+ uses : actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2530 with :
2631 python-version : ${{ matrix.python-version }}
32+ allow-prereleases : true
2733 - name : Install dependencies
2834 run : |
2935 python -m pip install --upgrade pip
3036 python -m pip install tox
3137 - name : tox
3238 run : |
3339 tox -e py
34- - name : coverage
35- uses : codecov/codecov-action@v5
40+ - name : Upload coverage report
41+ uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
42+ with :
43+ use_oidc : true
44+ - name : Upload test results
45+ if : ${{ !cancelled() }}
46+ uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
3647 with :
37- token : ${{ secrets.CODECOV_TOKEN }}
48+ report_type : test_results
49+ use_oidc : true
3850
3951 check :
4052 runs-on : ubuntu-latest
4557 tox-job : ["mypy", "twinecheck"]
4658
4759 steps :
48- - uses : actions/checkout@v5
60+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
61+ with :
62+ persist-credentials : false
4963 - name : Set up Python ${{ matrix.python-version }}
50- uses : actions/setup-python@v6
64+ uses : actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
5165 with :
5266 python-version : ${{ matrix.python-version }}
5367 - name : Install dependencies
6175 pre-commit :
6276 runs-on : ubuntu-latest
6377 steps :
64- - uses : actions/checkout@v5
65- - uses : pre-commit/action@v3.0.1
78+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
79+ with :
80+ persist-credentials : false
81+ - uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
0 commit comments