-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(spec): update existing tla specs with apalache type system 1…
….2 (#193) * update transfer spec * update counter spec * update reactor * update tests * fix cli test * project rules ci * update modelator version * update deps * update poetry lock * update readme * update pre-generated traces * instructions to set up apalache * comments in markdown * keep consistent index style with python reactors * remove length based counter * informative renaming
- Loading branch information
Showing
20 changed files
with
3,437 additions
and
2,506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Check project rules | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- .github/workflows/project.yml | ||
- pyproject.toml | ||
|
||
jobs: | ||
dependency-version-check: | ||
runs-on: "ubuntu-latest" | ||
container: "archlinux" | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
pacman -Syu --needed --noconfirm git yq | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Check for git version | ||
run: | | ||
cat pyproject.toml | tomlq -r '.tool.poetry.dependencies[].git?' | (! grep --invert-match null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from modelator.pytest.decorators import itf, mbt | ||
|
||
|
||
@mbt("models/counter.tla", keypath="last_msg.name", checker_params={"view", "View2"}) | ||
@mbt("models/counter.tla", keypath="last_msg.tag", checker_params={"view", "View2"}) | ||
def test_traces_from_model(): | ||
print("auto-generated traces from tla file executed succesfully") | ||
|
||
|
||
@itf("traces/example0.itf.json", keypath="last_msg.name") | ||
@itf("traces/example1.itf.json", keypath="last_msg.name") | ||
@itf("traces/example2.itf.json", keypath="last_msg.name") | ||
@itf("traces/example0.itf.json", keypath="last_msg.tag") | ||
@itf("traces/example1.itf.json", keypath="last_msg.tag") | ||
@itf("traces/example2.itf.json", keypath="last_msg.tag") | ||
def test_use_generated_traces(): | ||
print("itf traces executed succesfully") |
Oops, something went wrong.