Skip to content

Commit a8f1ed9

Browse files
Merge pull request #9243 from ThomasWaldmann/ci-borg-dir-exe-master
CI: faster with borg-dir/borg.exe, fixes #9236
2 parents 3e5c353 + d602cf2 commit a8f1ed9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,6 @@ jobs:
281281
run: |
282282
pip install -r requirements.d/pyinstaller.txt
283283
mkdir -p dist/binary
284-
# Ensure locally built binaries in ./dist/binary are found during tox tests
285-
echo "$GITHUB_WORKSPACE/dist/binary" >> "$GITHUB_PATH"
286284
pyinstaller --clean --distpath=dist/binary scripts/borg.exe.spec
287285
288286
- name: Smoke-test the built binary (${{ matrix.binary }})
@@ -331,6 +329,8 @@ jobs:
331329
run: |
332330
# do not use fakeroot, but run as root. avoids the dreaded EISDIR sporadic failures. see #2482.
333331
#sudo -E bash -c "tox -e py"
332+
# Ensure locally built binary in ./dist/binary/borg-dir is found during tests
333+
export PATH="$GITHUB_WORKSPACE/dist/binary/borg-dir:$PATH"
334334
tox --skip-missing-interpreters
335335
336336
- name: Upload coverage to Codecov
@@ -594,9 +594,10 @@ jobs:
594594

595595
- name: Run tests
596596
run: |
597-
./dist/borg.exe -V
597+
# Ensure locally built binary in ./dist/binary/borg-dir is found during tests
598+
export PATH="$GITHUB_WORKSPACE/dist/binary/borg-dir:$PATH"
599+
borg.exe -V
598600
. env/bin/activate
599-
borg -V
600601
python -m pytest -n4 --benchmark-skip -vv -rs -k "not remote"
601602
602603
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)