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

Commit 8d7fcf9

Browse files
authored
Fix latest deps CI (#13734)
1 parent dc0e896 commit 8d7fcf9

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed

.github/workflows/latest_deps.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# As an overview this workflow:
77
# - checks out develop,
8-
# - installs from source, pulling in the dependencies like a fresh `pip install` would, and
8+
# - installs from source, pulling in the dependencies like a fresh `pip install` would, and
99
# - runs mypy and test suites in that checkout.
1010
#
1111
# Based on the twisted trunk CI job.
@@ -26,12 +26,19 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v2
29+
- name: Install Rust
30+
uses: actions-rs/toolchain@v1
31+
with:
32+
toolchain: stable
33+
override: true
34+
- uses: Swatinem/rust-cache@v2
35+
2936
# The dev dependencies aren't exposed in the wheel metadata (at least with current
3037
# poetry-core versions), so we install with poetry.
3138
- uses: matrix-org/setup-python-poetry@v1
3239
with:
3340
python-version: "3.x"
34-
poetry-version: "1.2.0b1"
41+
poetry-version: "1.2.0"
3542
extras: "all"
3643
# Dump installed versions for debugging.
3744
- run: poetry run pip list > before.txt
@@ -53,6 +60,14 @@ jobs:
5360

5461
steps:
5562
- uses: actions/checkout@v2
63+
64+
- name: Install Rust
65+
uses: actions-rs/toolchain@v1
66+
with:
67+
toolchain: stable
68+
override: true
69+
- uses: Swatinem/rust-cache@v2
70+
5671
- run: sudo apt-get -qq install xmlsec1
5772
- name: Set up PostgreSQL ${{ matrix.postgres-version }}
5873
if: ${{ matrix.postgres-version }}
@@ -187,4 +202,3 @@ jobs:
187202
with:
188203
update_existing: true
189204
filename: .ci/latest_deps_build_failed_issue_template.md
190-

.github/workflows/twisted_trunk.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19+
20+
- name: Install Rust
21+
uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: stable
24+
override: true
25+
- uses: Swatinem/rust-cache@v2
26+
1927
- uses: matrix-org/setup-python-poetry@v1
2028
with:
2129
python-version: "3.x"
@@ -34,6 +42,14 @@ jobs:
3442
steps:
3543
- uses: actions/checkout@v2
3644
- run: sudo apt-get -qq install xmlsec1
45+
46+
- name: Install Rust
47+
uses: actions-rs/toolchain@v1
48+
with:
49+
toolchain: stable
50+
override: true
51+
- uses: Swatinem/rust-cache@v2
52+
3753
- uses: matrix-org/setup-python-poetry@v1
3854
with:
3955
python-version: "3.x"
@@ -66,6 +82,14 @@ jobs:
6682

6783
steps:
6884
- uses: actions/checkout@v2
85+
86+
- name: Install Rust
87+
uses: actions-rs/toolchain@v1
88+
with:
89+
toolchain: stable
90+
override: true
91+
- uses: Swatinem/rust-cache@v2
92+
6993
- name: Patch dependencies
7094
# Note: The poetry commands want to create a virtualenv in /src/.venv/,
7195
# but the sytest-synapse container expects it to be in /venv/.

changelog.d/13734.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a stub Rust crate.

0 commit comments

Comments
 (0)