Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix github runner #19

Merged
merged 4 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[flake8]
extend-exclude = _skbuild/,siliconcompiler/
extend-exclude = .venv/,siliconcompiler/
max-line-length = 100
ignore =
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ jobs:

- name: Lint with Flake8
run: |
python -m pip install flake8 -c ./requirements.txt
python3 -m venv .venv
. .venv/bin/activate

python3 -m pip install flake8 -c ./requirements.txt
flake8 --statistics .
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:

- name: Run Python tests
run: |
python3 -m venv .venv
. .venv/bin/activate

python3 -m pip install --upgrade pip
python3 -m pip install .[test]
pytest -m "not wheel"

# change running directory
mkdir testrun
cd testrun

pytest $GITHUB_WORKSPACE -m "not wheel"
3 changes: 3 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
collect_ignore = [
"siliconcompiler/"
]
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ build-backend = "setuptools.build_meta"
markers = [
"wheel: wheel only tests."
]
testpaths = "tests"
testpaths = [
"tests"
]
pythonpath = [
"siliconcompiler/siliconcompiler/toolscripts"
"siliconcompiler/siliconcompiler/toolscripts"
]