5454
5555 runs-on : ubuntu-24.04
5656 timeout-minutes : 25
57- needs : [lint, security ]
57+ needs : [lint]
5858
5959 steps :
6060 - uses : actions/checkout@v4
@@ -122,7 +122,7 @@ jobs:
122122
123123 native_tests :
124124
125- needs : [lint, security ]
125+ needs : [lint]
126126 permissions :
127127 contents : read
128128 id-token : write
@@ -141,9 +141,6 @@ jobs:
141141 ]
142142 }' || '{
143143 "include": [
144- {"os": "ubuntu-22.04", "python-version": "3.10", "toxenv": "mypy"},
145- {"os": "ubuntu-22.04", "python-version": "3.11", "toxenv": "docs"},
146- {"os": "ubuntu-22.04", "python-version": "3.10", "toxenv": "py310-llfuse"},
147144 {"os": "ubuntu-22.04", "python-version": "3.11", "toxenv": "py311-llfuse", "binary": "borg-linux-glibc235-x86_64-gh"},
148145 {"os": "ubuntu-22.04-arm", "python-version": "3.11", "toxenv": "py311-llfuse", "binary": "borg-linux-glibc235-arm64-gh"},
149146 {"os": "ubuntu-24.04", "python-version": "3.12", "toxenv": "py312-pyfuse3"},
@@ -182,6 +179,15 @@ jobs:
182179 ${{ runner.os }}-pip-
183180 ${{ runner.os }}-
184181
182+ - name : Cache tox environments
183+ uses : actions/cache@v4
184+ with :
185+ path : .tox
186+ key : ${{ runner.os }}-tox-${{ matrix.toxenv }}-${{ hashFiles('requirements.d/development.txt', 'pyproject.toml') }}
187+ restore-keys : |
188+ ${{ runner.os }}-tox-${{ matrix.toxenv }}-
189+ ${{ runner.os }}-tox-
190+
185191 - name : Install Linux packages
186192 if : ${{ runner.os == 'Linux' }}
187193 run : |
@@ -203,7 +209,7 @@ jobs:
203209 brew bundle install
204210
205211 - name : Configure OpenSSH SFTP server (test only)
206- if : ${{ runner.os == 'Linux' }}
212+ if : ${{ runner.os == 'Linux' && !contains(matrix.toxenv, 'mypy') && !contains(matrix.toxenv, 'docs') }}
207213 run : |
208214 sudo mkdir -p /run/sshd
209215 sudo useradd -m -s /bin/bash sftpuser || true
@@ -233,7 +239,7 @@ jobs:
233239 echo "BORG_TEST_SFTP_REPO=sftp://sftpuser@localhost:22/borg/sftp-repo" >> $GITHUB_ENV
234240
235241 - name : Install and configure MinIO S3 server (test only)
236- if : ${{ runner.os == 'Linux' }}
242+ if : ${{ runner.os == 'Linux' && !contains(matrix.toxenv, 'mypy') && !contains(matrix.toxenv, 'docs') }}
237243 run : |
238244 set -e
239245 arch=$(uname -m)
@@ -349,7 +355,7 @@ jobs:
349355 attestations : write
350356 runs-on : ubuntu-24.04
351357 timeout-minutes : 90
352- needs : [lint, security ]
358+ needs : [lint]
353359 continue-on-error : true
354360
355361 strategy :
@@ -547,7 +553,7 @@ jobs:
547553 if : true # can be used to temporarily disable the build
548554 runs-on : windows-latest
549555 timeout-minutes : 90
550- needs : [lint, security ]
556+ needs : [lint]
551557
552558 env :
553559 PY_COLORS : 1
0 commit comments