浏览代码

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>
Sean Quah 2 年之前
父节点
当前提交
3637d7f9b8
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. 8 5
      .github/workflows/twisted_trunk.yml

+ 8 - 5
.github/workflows/twisted_trunk.yml

@@ -59,16 +59,19 @@ jobs:
 
     steps:
       - uses: actions/checkout@v2
-      - uses: matrix-org/setup-python-poetry@dmr/try-extras
-        with:
-          python-version: "3.x"
-          extras: "all"
       - name: Patch dependencies
-        run: .ci/patch_for_twisted_trunk.sh
+        run: >-
+          ln -s -T /venv /src/.venv &&
+          .ci/patch_for_twisted_trunk.sh &&
+          unlink /src/.venv
         working-directory: /src
       - name: Run SyTest
         run: /bootstrap.sh synapse
         working-directory: /src
+        env:
+          # Use offline mode to avoid reinstalling the pinned version of
+          # twisted.
+          OFFLINE: 1
       - name: Summarise results.tap
         if: ${{ always() }}
         run: /sytest/scripts/tap_to_gha.pl /logs/results.tap