1010 branches : [ main, 3.1.x ]
1111 workflow_dispatch :
1212
13+ permissions :
14+ contents : read
15+
1316concurrency :
1417 group : ${{ github.workflow }}-${{ github.ref }}
1518 cancel-in-progress : true
@@ -20,23 +23,23 @@ jobs:
2023
2124 strategy :
2225 matrix :
23- python-version : ['3.11 ', '3.12 ', '3.13 ']
26+ python-version : ['3.12 ', '3.13 ', '3.14 ']
2427 dependency-set : ["minimal", "optional"]
2528 os : ["ubuntu-latest"]
2629 include :
27- - python-version : ' 3.11 '
30+ - python-version : ' 3.12 '
2831 dependency-set : ' optional'
2932 os : ' macos-latest'
3033
31- - python-version : ' 3.13 '
34+ - python-version : ' 3.14 '
3235 dependency-set : ' optional'
3336 os : ' macos-latest'
3437
35- - python-version : ' 3.11 '
38+ - python-version : ' 3.12 '
3639 dependency-set : ' optional'
3740 os : ' windows-latest'
3841
39- - python-version : ' 3.13 '
42+ - python-version : ' 3.14 '
4043 dependency-set : ' optional'
4144 os : ' windows-latest'
4245 runs-on : ${{ matrix.os }}
5154 python-version : ${{ matrix.python-version }}
5255 cache : ' pip'
5356 - name : Install Hatch
54- run : |
55- python -m pip install --upgrade pip
56- pip install hatch
57+ uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
58+ with :
59+ version : ' 1.16.5 '
5760 - name : Set Up Hatch Env
5861 run : |
5962 hatch env create test.py${{ matrix.python-version }}-${{ matrix.dependency-set }}
6871 uses : codecov/codecov-action@v5
6972 with :
7073 token : ${{ secrets.CODECOV_TOKEN }}
74+ flags : tests
7175 verbose : true # optional (default = false)
7276
7377 test-upstream-and-min-deps :
@@ -76,12 +80,12 @@ jobs:
7680 runs-on : ubuntu-latest
7781 strategy :
7882 matrix :
79- python-version : ['3.11 ', "3.13 "]
83+ python-version : ['3.12 ', "3.14 "]
8084 dependency-set : ["upstream", "min_deps"]
8185 exclude :
82- - python-version : " 3.13 "
86+ - python-version : " 3.14 "
8387 dependency-set : min_deps
84- - python-version : " 3.11 "
88+ - python-version : " 3.12 "
8589 dependency-set : upstream
8690 steps :
8791 - uses : actions/checkout@v6
9397 python-version : ${{ matrix.python-version }}
9498 cache : ' pip'
9599 - name : Install Hatch
96- run : |
97- python -m pip install --upgrade pip
98- pip install hatch
100+ uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
101+ with :
102+ version : ' 1.16.5 '
99103 - name : Set Up Hatch Env
100104 run : |
101105 hatch env create ${{ matrix.dependency-set }}
@@ -107,6 +111,7 @@ jobs:
107111 uses : codecov/codecov-action@v5
108112 with :
109113 token : ${{ secrets.CODECOV_TOKEN }}
114+ flags : tests
110115 verbose : true # optional (default = false)
111116
112117 doctests :
@@ -122,9 +127,9 @@ jobs:
122127 python-version : ' 3.13'
123128 cache : ' pip'
124129 - name : Install Hatch
125- run : |
126- python -m pip install --upgrade pip
127- pip install hatch
130+ uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
131+ with :
132+ version : ' 1.16.5 '
128133 - name : Set Up Hatch Env
129134 run : |
130135 hatch run doctest:pip list
@@ -150,4 +155,4 @@ jobs:
150155 contains(needs.*.result, 'cancelled')
151156 run : exit 1
152157 - name : Success
153- run : echo Success!
158+ run : echo Success!
0 commit comments