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
1619
1720jobs :
1821 test :
19- name : os=${{ matrix.os }}, py=${{ matrix.python-version }}, np=${{ matrix.numpy-version }}, deps=${{ matrix.dependency-set }}
22+ name : os=${{ matrix.os }}, py=${{ matrix.python-version }}, deps=${{ matrix.dependency-set }}
2023
2124 strategy :
2225 matrix :
2326 python-version : ['3.11', '3.12', '3.13']
24- numpy-version : ['1.26', '2.2']
2527 dependency-set : ["minimal", "optional"]
2628 os : ["ubuntu-latest"]
2729 include :
2830 - python-version : ' 3.11'
29- numpy-version : ' 1.26'
3031 dependency-set : ' optional'
3132 os : ' macos-latest'
33+
3234 - python-version : ' 3.13'
33- numpy-version : ' 2.2'
3435 dependency-set : ' optional'
3536 os : ' macos-latest'
37+
3638 - python-version : ' 3.11'
37- numpy-version : ' 1.26'
3839 dependency-set : ' optional'
3940 os : ' windows-latest'
41+
4042 - python-version : ' 3.13'
41- numpy-version : ' 2.2'
4243 dependency-set : ' optional'
4344 os : ' windows-latest'
4445 runs-on : ${{ matrix.os }}
@@ -53,18 +54,18 @@ jobs:
5354 python-version : ${{ matrix.python-version }}
5455 cache : ' pip'
5556 - name : Install Hatch
56- run : |
57- python -m pip install --upgrade pip
58- pip install hatch
57+ uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
58+ with :
59+ version : ' 1.16.5 '
5960 - name : Set Up Hatch Env
6061 run : |
61- hatch env create test.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix. dependency-set }}
62- hatch env run -e test.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix. dependency-set }} list-env
62+ hatch env create test.py${{ matrix.python-version }}-${{ matrix.dependency-set }}
63+ hatch env run -e test.py${{ matrix.python-version }}-${{ matrix.dependency-set }} list-env
6364 - name : Run Tests
6465 env :
6566 HYPOTHESIS_PROFILE : ci
6667 run : |
67- hatch env run --env test.py${{ matrix.python-version }}-${{ matrix.numpy-version }}-${{ matrix. dependency-set }} run-coverage
68+ hatch env run --env test.py${{ matrix.python-version }}-${{ matrix.dependency-set }} run-coverage
6869 - name : Upload coverage
6970 if : ${{ matrix.dependency-set == 'optional' && matrix.os == 'ubuntu-latest' }}
7071 uses : codecov/codecov-action@v5
9596 python-version : ${{ matrix.python-version }}
9697 cache : ' pip'
9798 - name : Install Hatch
98- run : |
99- python -m pip install --upgrade pip
100- pip install hatch
99+ uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
100+ with :
101+ version : ' 1.16.5 '
101102 - name : Set Up Hatch Env
102103 run : |
103104 hatch env create ${{ matrix.dependency-set }}
@@ -124,9 +125,9 @@ jobs:
124125 python-version : ' 3.13'
125126 cache : ' pip'
126127 - name : Install Hatch
127- run : |
128- python -m pip install --upgrade pip
129- pip install hatch
128+ uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
129+ with :
130+ version : ' 1.16.5 '
130131 - name : Set Up Hatch Env
131132 run : |
132133 hatch run doctest:pip list
0 commit comments