Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix CI tests
  • Loading branch information
gigeresk committed Oct 3, 2025
commit ff3d9a605b98d66c045f3fe660665651ea4d2e5d
6 changes: 3 additions & 3 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:

- name: Setup python
run: |
python3 -m venv --system-site-packages .efpga
. .efpga/bin/activate
python3 -m venv --system-site-packages .logik
. .logik/bin/activate
python3 -m pip install --upgrade pip
pip3 install -e .[test]

Expand All @@ -53,5 +53,5 @@ jobs:

- name: Run tests
run: |
. .efpga/bin/activate
. .logik/bin/activate
pytest
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _mock_show(chip, filename=None, screenshot=False):
# pytest's monkeypatch lets us modify sys.path for this test only.
monkeypatch.syspath_prepend(ex_dir)
# Mock chip.show() so it doesn't run.
monkeypatch.setattr(siliconcompiler.Chip, 'show', _mock_show)
monkeypatch.setattr(siliconcompiler.Project, 'show', _mock_show)

return ex_dir

Expand Down
11 changes: 5 additions & 6 deletions tests/examples/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
import pytest
import siliconcompiler

from logiklib.demo.K4_N8_6x6 import K4_N8_6x6

from logik.demo.z1000 import z1000

@pytest.mark.parametrize(
"part",
[
K4_N8_6x6,
z1000,
])
def test_file_paths(part):
chip = siliconcompiler.Chip("test")
chip.use(part)
project = siliconcompiler.FPGA("test")
project.set_fpga(part())

assert chip.check_filepaths()
assert project.check_filepaths()
Loading