Skip to content

Commit 004a1ef

Browse files
author
builderdev212
committed
move container to separate repo, add testbench runner
1 parent 9634cdf commit 004a1ef

File tree

5 files changed

+21
-60
lines changed

5 files changed

+21
-60
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,19 @@ jobs:
88
- uses: actions/checkout@v4
99
- uses: rickstaa/action-black@v1
1010
with:
11-
black_args: ". --check"
11+
black_args: ". --check"
12+
13+
name: CI
14+
on:
15+
push:
16+
branches: [ main ]
17+
jobs:
18+
container-test-job:
19+
runs-on: debian:12-slim
20+
container:
21+
image: ghcr.io/builderdev212/cocotb-runner
22+
volumes:
23+
- ${PWD}:/usr/src/verilogbits
24+
steps:
25+
- name: Run testbenches
26+
run: cd verilogbits && pytest -n 10

Containerfile

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

Makefile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
CONTAINER_IMG := cocotb-dev
2-
CONTAINER_FILE := Containerfile
3-
4-
build::
5-
@podman build -f ${CONTAINER_FILE} -t ${CONTAINER_IMG} "${PWD}"
6-
7-
# publish::
8-
# @podman login
9-
# @podman push ${CONTAINER_IMG}:latest
1+
CONTAINER_IMG := ghcr.io/builderdev212/cocotb-runner
102

113
run::
124
@podman run -it --rm \

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# verilogbits
22
My solutions and my own tests for problems from the HDLBits website.
33

4-
## Setting up a virtual environment
4+
## Running tests
55
```bash
6-
python3 -m venv .venv --prompt verilogbits
7-
source .venv/bin/activate
8-
pip3 install -r requirements.txt
6+
make run
7+
cd verilogbits
8+
pytest -n auto
99
```

requirements.txt

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

0 commit comments

Comments
 (0)