Skip to content

Commit 0857a08

Browse files
authored
Merge pull request #100 from siliconcompiler/add-ci
add eda CI
2 parents a2f2edf + 5eabb09 commit 0857a08

File tree

2 files changed

+33
-7
lines changed

2 files changed

+33
-7
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
pip install .[dev]
2727
flake8 --statistics .
2828
29-
check_paths:
30-
name: Run CI
29+
python_ci:
30+
name: Run Python Only
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Check out Git repository
@@ -44,7 +44,7 @@ jobs:
4444
mkdir testrun
4545
cd testrun
4646
47-
pytest $GITHUB_WORKSPACE
47+
pytest $GITHUB_WORKSPACE -m "not eda"
4848
4949
lint_verilog:
5050
name: Lint Verilog Code
@@ -75,3 +75,24 @@ jobs:
7575
if: success() || steps.check-format.conclusion == 'failure'
7676
run: |
7777
verible-verilog-lint --rules_config ./.github/workflows/config/verible.rules `cat files.txt`
78+
79+
eda_ci:
80+
name: Run EDA
81+
runs-on: ubuntu-latest
82+
container: ghcr.io/siliconcompiler/sc_runner:latest
83+
steps:
84+
- name: Check out Git repository
85+
uses: actions/checkout@v4
86+
- name: Run tests
87+
run: |
88+
python3 -m venv .venv
89+
. .venv/bin/activate
90+
91+
pip install --upgrade pip
92+
pip install .[dev]
93+
94+
# change running directory
95+
mkdir testrun
96+
cd testrun
97+
98+
pytest $GITHUB_WORKSPACE -m "eda"

pyproject.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ dynamic = ['version']
2828
[tool.setuptools.dynamic]
2929
version = {attr = "lambdalib._common._version"}
3030

31-
[tool.pytest.ini_options]
32-
testpaths = "tests"
33-
timeout = "60"
34-
3531
[project.optional-dependencies]
3632
# Dev dependencies.
3733
dev = [
@@ -41,3 +37,12 @@ dev = [
4137
"cocotb==1.9.2",
4238
"cocotb-bus==0.2.1"
4339
]
40+
41+
[tool.pytest.ini_options]
42+
markers = [
43+
"eda: this test requires EDA tools installed to run.",
44+
]
45+
testpaths = [
46+
"tests"
47+
]
48+
timeout = "60"

0 commit comments

Comments
 (0)