|
26 | 26 | with:
|
27 | 27 | python-version: '3.10'
|
28 | 28 |
|
| 29 | + - name: Ensure latest pip |
| 30 | + run: python -m pip install --upgrade pip |
| 31 | + |
29 | 32 | - name: Install tox
|
30 | 33 | run: python -m pip install --upgrade tox
|
31 | 34 |
|
@@ -128,9 +131,20 @@ jobs:
|
128 | 131 | with:
|
129 | 132 | python-version: ${{ matrix.python-version }}
|
130 | 133 |
|
| 134 | + - name: Ensure latest pip |
| 135 | + run: python -m pip install --upgrade pip |
| 136 | + |
131 | 137 | - name: Install tox
|
132 | 138 | run: python -m pip install --upgrade tox
|
133 | 139 |
|
| 140 | + - name: Cache tox virtual environment |
| 141 | + uses: actions/cache@v3 |
| 142 | + with: |
| 143 | + path: .tox |
| 144 | + key: ${{ matrix.os }}-tox-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'tox.ini') }} |
| 145 | + restore-keys: | |
| 146 | + ${{ matrix.os }}-tox-${{ matrix.python-version }}- |
| 147 | +
|
134 | 148 | - name: Run unit tests
|
135 | 149 | if: ${{ ! matrix.tox-env && matrix.with-coverage }}
|
136 | 150 | run: tox -e py${{ matrix.python-version }}-cov -- testing/test_unit.py
|
@@ -196,9 +210,20 @@ jobs:
|
196 | 210 | with:
|
197 | 211 | python-version: ${{ matrix.python-version }}
|
198 | 212 |
|
| 213 | + - name: Ensure latest pip |
| 214 | + run: python -m pip install --upgrade pip |
| 215 | + |
199 | 216 | - name: Install tox
|
200 | 217 | run: python -m pip install --upgrade tox
|
201 | 218 |
|
| 219 | + - name: Cache tox virtual environment |
| 220 | + uses: actions/cache@v3 |
| 221 | + with: |
| 222 | + path: .tox |
| 223 | + key: ubuntu-latest-tox-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml', 'tox.ini') }} |
| 224 | + restore-keys: | |
| 225 | + ubuntu-latest-tox-${{ matrix.python-version }}- |
| 226 | +
|
202 | 227 | - name: Run integration tests
|
203 | 228 | if: ${{ ! matrix.tox-env && matrix.with-coverage }}
|
204 | 229 | run: tox -e ${{ matrix.python-version }}-cov -- testing/test_integration.py
|
|
0 commit comments