Skip to content

Commit

Permalink
Enable CI with cocotb dependency from recent master branch on github
Browse files Browse the repository at this point in the history
  • Loading branch information
p12tic committed Sep 14, 2024
1 parent 7aa2f29 commit c3f8221
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
matrix:
python-version: ["3.6", "3.12"]
# NOTE: align with versions in noxfile.py:
cocotb-version: ["1.6.0", "1.9.0"]
cocotb-version: ["1.6.0", "1.9.0", "github-828d127e"]
include:
- sim: icarus
sim-version: apt
Expand Down
8 changes: 6 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@


@nox.session
@nox.parametrize("cocotb", ["1.6.0", "1.9.0"])
@nox.parametrize("cocotb", ["1.6.0", "1.9.0", "github-828d127e"])
def tests(session, cocotb):
session.install("pytest", "coverage", f"cocotb=={cocotb}")
if cocotb.startswith("github-"):
cocotb_req = "git+https://github.com/cocotb/cocotb@" + cocotb[len("github-"):]
else:
cocotb_req = f"cocotb=={cocotb}"
session.install("pytest", "coverage", cocotb_req)
session.install(".")
session.run("make", external=True)

Expand Down

0 comments on commit c3f8221

Please sign in to comment.