Skip to content

Commit 52e9571

Browse files
committed
use docker-run-action
1 parent 7085cb7 commit 52e9571

File tree

2 files changed

+30
-18
lines changed

2 files changed

+30
-18
lines changed

.github/workflows/black.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +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"
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: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1-
name: pytest-cocotb
2-
on: [push, pull_request]
1+
name: cocotb
2+
on: push
33
jobs:
4-
cocotb:
4+
cocotb-container:
55
runs-on: ubuntu-latest
6-
container: ghcr.io/builderdev212/cocotb-runner:latest
76
steps:
8-
- name: Check for dockerenv file
9-
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
10-
- run: git clone https://github.com/builderdev212/verilogbits && pytest
7+
- name: Checkout code
8+
uses: actions/checkout@v4
9+
10+
- name: Run step in container
11+
uses: addnab/docker-run-action@v3
12+
with:
13+
image: ghcr.io/builderdev212/cocotb-runner:latest
14+
run: |
15+
pytest
16+
# jobs:
17+
# cocotb-container:
18+
# runs-on: ubuntu-latest
19+
# container: ghcr.io/builderdev212/cocotb-runner:latest
20+
# steps:
21+
# - run: git clone https://github.com/builderdev212/verilogbits
22+
# - run: pytest
1123
# cocotb:
1224
# runs-on: ubuntu-latest
1325
# steps:

0 commit comments

Comments
 (0)