Skip to content

Commit 2a23b3c

Browse files
Fix runners (#1)
* restructure runners
1 parent 004a1ef commit 2a23b3c

File tree

4 files changed

+31
-27
lines changed

4 files changed

+31
-27
lines changed

.github/workflows/black.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: python-black
2+
on: [push, pull_request]
3+
jobs:
4+
linter_name:
5+
name: runner / black formatter
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: rickstaa/action-black@v1
10+
with:
11+
black_args: ". --check"

.github/workflows/cocotb.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: cocotb
2+
on: [push, pull_request]
3+
jobs:
4+
cocotb-container:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout code
8+
uses: actions/checkout@v4
9+
- name: Run pytest in container
10+
uses: addnab/docker-run-action@v3
11+
with:
12+
image: ghcr.io/builderdev212/cocotb-runner:latest
13+
options: -v ${{ github.workspace }}:/usr/src/verilogbits
14+
run: |
15+
. .venv/bin/activate && /bin/bash
16+
cd verilogbits
17+
pytest

.github/workflows/main.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

problems/getting-started/output-zero/tb/constant_zero.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ def get_signals(self):
2121

2222
async def zero_check(self):
2323
if int(self.zero.value) != 0:
24-
raise DataError(f"Output should always be 0, got {self.zero.value} instead.")
24+
raise DataError(
25+
f"Output should always be 0, got {self.zero.value} instead."
26+
)

0 commit comments

Comments
 (0)