Skip to content

Commit

Permalink
ci: bump versions in MSRV check
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Oct 4, 2024
1 parent 8e0dc6d commit 30f1e56
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,8 @@ jobs:
run: |
import toml
cargo_toml = toml.load("Cargo.toml")
cargo_toml["dependencies"]["ndarray"] = "0.13.1"
cargo_toml["dependencies"]["parking_lot"] = "0.11.2"
cargo_toml["dependencies"]["ndarray"] = "0.15.6"
cargo_toml["dependencies"]["num-complex"] = "0.2.4"
cargo_toml["dependencies"]["once_cell"] = "1.14.0"
with open("Cargo.toml", "w") as f:
toml.dump(cargo_toml, f)
working-directory: examples/simple
Expand All @@ -225,12 +223,8 @@ jobs:
cargo_lock = toml.load("Cargo.lock")
for pkg in cargo_lock["package"]:
pkg_id = pkg["name"] + ":" + pkg["version"]
if pkg["name"] == "ndarray" and pkg["version"] != "0.13.1":
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.13.1"], check=True)
elif pkg["name"] == "parking_lot" and pkg["version"] != "0.11.2":
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.11.2"], check=True)
elif pkg["name"] == "once_cell" and pkg["version"] != "1.14.0":
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "1.14.0"], check=True)
if pkg["name"] == "ndarray" and pkg["version"] != "0.15.6":
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.15.6"], check=True)
working-directory: examples/simple
shell: python
- name: Test example
Expand Down

0 comments on commit 30f1e56

Please sign in to comment.