Skip to content

Commit

Permalink
Lock test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Dec 30, 2024
1 parent e40ed46 commit 233592c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TestRunner:
print()

def _run_test_workspace(self):
self._run_cargo("test")
self._run_cargo("test", "--locked")

def _run_test_clippy(self, extra_clippy_flags: str):
args = [
Expand All @@ -69,14 +69,15 @@ class TestRunner:
self._run_cargo(*args)

def _run_test_full_example(self):
self._run_cargo("run", "--manifest-path", "fitsio/Cargo.toml", "--example", "full_example")
self._run_cargo("run", "--locked", "--manifest-path", "fitsio/Cargo.toml", "--example", "full_example")

def _run_test_array(self):
self._run_cargo("test", "--manifest-path", "fitsio/Cargo.toml", "--features", "array")
self._run_cargo("test", "--locked", "--manifest-path", "fitsio/Cargo.toml", "--features", "array")

def _run_test_fitsio_src(self):
self._run_cargo(
"test",
"--locked",
"--manifest-path",
"fitsio/Cargo.toml",
"--features",
Expand All @@ -86,6 +87,7 @@ class TestRunner:
def _run_test_fitsio_src_and_bindgen(self):
self._run_cargo(
"test",
"--locked",
"--manifest-path",
"fitsio/Cargo.toml",
"--features",
Expand All @@ -97,6 +99,7 @@ class TestRunner:
def _run_test_bindgen(self):
self._run_cargo(
"test",
"--locked",
"--manifest-path",
"fitsio/Cargo.toml",
"--features",
Expand Down

0 comments on commit 233592c

Please sign in to comment.