Skip to content

Commit 7bbf415

Browse files
MichaelCG8adamreichold
authored andcommitted
Adding parking_lot dependency to github workflow check-msrv job for 0.16 branch
1 parent f78b18b commit 7bbf415

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
import toml
113113
cargo_toml = toml.load("Cargo.toml")
114114
cargo_toml["dependencies"]["ndarray"] = "0.13.1"
115+
cargo_toml["dependencies"]["parking_lot"] = "0.11.2"
115116
cargo_toml["dependencies"]["num-complex"] = "0.2.4"
116117
cargo_toml["workspace"] = {}
117118
with open("Cargo.toml", "w") as f:
@@ -127,9 +128,11 @@ jobs:
127128
import subprocess
128129
cargo_lock = toml.load("Cargo.lock")
129130
for pkg in cargo_lock["package"]:
131+
pkg_id = pkg["name"] + ":" + pkg["version"]
130132
if pkg["name"] == "ndarray" and pkg["version"] != "0.13.1":
131-
pkg_id = pkg["name"] + ":" + pkg["version"]
132133
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.13.1"], check=True)
134+
if pkg["name"] == "parking_lot" and pkg["version"] != "0.11.2":
135+
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.11.2"], check=True)
133136
working-directory: examples/simple
134137
shell: python
135138
- name: Test example

0 commit comments

Comments
 (0)