Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit b753ba7

Browse files
Sean QuahDavid Robertson
authored andcommitted
Fix twisted trunk with sytest
Install twisted trunk into the correct virtual env and use offline mode so that twisted trunk doesn't get overridden with the pinned version of twisted. Signed-off-by: Sean Quah <seanq@element.io>
1 parent cc487f1 commit b753ba7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/twisted_trunk.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,19 @@ jobs:
5959

6060
steps:
6161
- uses: actions/checkout@v2
62-
- uses: matrix-org/setup-python-poetry@dmr/try-extras
63-
with:
64-
python-version: "3.x"
65-
extras: "all"
6662
- name: Patch dependencies
67-
run: .ci/patch_for_twisted_trunk.sh
63+
run: >-
64+
ln -s -T /venv /src/.venv &&
65+
.ci/patch_for_twisted_trunk.sh &&
66+
unlink /src/.venv
6867
working-directory: /src
6968
- name: Run SyTest
7069
run: /bootstrap.sh synapse
7170
working-directory: /src
71+
env:
72+
# Use offline mode to avoid reinstalling the pinned version of
73+
# twisted.
74+
OFFLINE: 1
7275
- name: Summarise results.tap
7376
if: ${{ always() }}
7477
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap

0 commit comments

Comments
 (0)