File tree Expand file tree Collapse file tree 2 files changed +33
-7
lines changed Expand file tree Collapse file tree 2 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 26
26
pip install .[dev]
27
27
flake8 --statistics .
28
28
29
- check_paths :
30
- name : Run CI
29
+ python_ci :
30
+ name : Run Python Only
31
31
runs-on : ubuntu-latest
32
32
steps :
33
33
- name : Check out Git repository
44
44
mkdir testrun
45
45
cd testrun
46
46
47
- pytest $GITHUB_WORKSPACE
47
+ pytest $GITHUB_WORKSPACE -m "not eda"
48
48
49
49
lint_verilog :
50
50
name : Lint Verilog Code
75
75
if : success() || steps.check-format.conclusion == 'failure'
76
76
run : |
77
77
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"
Original file line number Diff line number Diff line change @@ -28,10 +28,6 @@ dynamic = ['version']
28
28
[tool .setuptools .dynamic ]
29
29
version = {attr = " lambdalib._common._version" }
30
30
31
- [tool .pytest .ini_options ]
32
- testpaths = " tests"
33
- timeout = " 60"
34
-
35
31
[project .optional-dependencies ]
36
32
# Dev dependencies.
37
33
dev = [
@@ -41,3 +37,12 @@ dev = [
41
37
" cocotb==1.9.2" ,
42
38
" cocotb-bus==0.2.1"
43
39
]
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"
You can’t perform that action at this time.
0 commit comments