-
Notifications
You must be signed in to change notification settings - Fork 17
75 lines (64 loc) · 1.87 KB
/
ci.yml
File metadata and controls
75 lines (64 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Testbench CI
on:
# Runs on all PRs
pull_request:
# Manual Dispatch
workflow_dispatch:
jobs:
switchboard_ci:
name: "Switchboard CI"
runs-on: ubuntu-latest
container:
image: ghcr.io/zeroasiccorp/sbtest:latest
timeout-minutes: 45
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: pytest
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
python3 -m venv venv
. venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -e .[test]
pytest -m "switchboard" -x --verbose --durations=0
cocotb_ci:
name: "Cocotb CI"
runs-on: ubuntu-latest
container:
image: ghcr.io/siliconcompiler/sc_runner:latest
timeout-minutes: 45
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: pytest
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
python3 -m venv venv
. venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -e .[test]
pytest -m "cocotb" -x --verbose --durations=0
python_ci:
name: "Python + Tools CI"
runs-on: ubuntu-latest
container:
image: ghcr.io/siliconcompiler/sc_tools:latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: pytest
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
python3 -m venv venv
. venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -e .[test]
pytest -m "not switchboard and not cocotb" -n logical --verbose