Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lbmpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
lbmpy
Commits
9bfd88f9
Commit
9bfd88f9
authored
3 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
omit coverage check in CPU testsuite
parent
6ea1c7b1
No related branches found
No related tags found
1 merge request
!172
Changes for compatibility with pystencils 2.0
Pipeline
#77933
failed
3 months ago
Stage: Code Quality
Stage: Tests
Stage: Prerelease-Tests
Stage: docs
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
noxfile.py
+19
-9
19 additions, 9 deletions
noxfile.py
with
19 additions
and
9 deletions
noxfile.py
+
19
−
9
View file @
9bfd88f9
...
@@ -95,31 +95,37 @@ def typecheck(session: nox.Session):
...
@@ -95,31 +95,37 @@ def typecheck(session: nox.Session):
session
.
run
(
"
mypy
"
,
"
src/lbmpy
"
)
session
.
run
(
"
mypy
"
,
"
src/lbmpy
"
)
def
run_testsuite
(
session
:
nox
.
Session
):
def
run_testsuite
(
session
:
nox
.
Session
,
coverage
:
bool
=
True
):
num_cores
=
os
.
cpu_count
()
num_cores
=
os
.
cpu_count
()
session
.
run
(
args
=
[
"
pytest
"
,
"
pytest
"
,
"
-v
"
,
"
-v
"
,
"
-n
"
,
"
-n
"
,
str
(
num_cores
),
str
(
num_cores
),
"
--cov-report=term
"
,
"
--cov=.
"
,
"
-m
"
,
"
-m
"
,
"
not longrun
"
,
"
not longrun
"
,
"
--html
"
,
"
--html
"
,
"
test-report/index.html
"
,
"
test-report/index.html
"
,
"
--junitxml=report.xml
"
,
"
--junitxml=report.xml
"
,
)
]
if
coverage
:
args
+=
[
"
--cov-report=term
"
,
"
--cov=.
"
,
]
session
.
run
(
*
args
)
session
.
run
(
"
coverage
"
,
"
html
"
)
session
.
run
(
"
coverage
"
,
"
html
"
)
session
.
run
(
"
coverage
"
,
"
xml
"
)
session
.
run
(
"
coverage
"
,
"
xml
"
)
@nox.session
(
python
=
[
"
3.10
"
,
"
3.11
"
,
"
3.12
"
,
"
3.13
"
])
@nox.session
(
python
=
[
"
3.10
"
,
"
3.11
"
,
"
3.12
"
,
"
3.13
"
])
def
testsuite_cpu
(
session
:
nox
.
Session
):
def
testsuite_cpu
(
session
:
nox
.
Session
):
install_pystencils_master
(
session
)
install_pystencils_master
(
session
)
editable_install
(
session
,
[
"
alltrafos
"
,
"
use_cython
"
,
"
interactive
"
,
"
tests
"
])
editable_install
(
session
,
[
"
alltrafos
"
,
"
use_cython
"
,
"
interactive
"
,
"
tests
"
])
run_testsuite
(
session
)
run_testsuite
(
session
,
coverage
=
False
)
@nox.session
(
python
=
[
"
3.10
"
,
"
3.11
"
,
"
3.12
"
,
"
3.13
"
])
@nox.session
(
python
=
[
"
3.10
"
,
"
3.11
"
,
"
3.12
"
,
"
3.13
"
])
...
@@ -137,7 +143,9 @@ def testsuite_pystencils2(session: nox.Session, cupy_version: str | None):
...
@@ -137,7 +143,9 @@ def testsuite_pystencils2(session: nox.Session, cupy_version: str | None):
if
cupy_version
is
not
None
:
if
cupy_version
is
not
None
:
install_cupy
(
session
,
cupy_version
,
skip_if_no_cuda
=
True
)
install_cupy
(
session
,
cupy_version
,
skip_if_no_cuda
=
True
)
session
.
install
(
"
git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev
"
)
session
.
install
(
"
git+https://i10git.cs.fau.de/pycodegen/pystencils.git@fhennig/patches-for-lbmpy
"
)
editable_install
(
session
,
[
"
alltrafos
"
,
"
use_cython
"
,
"
interactive
"
,
"
tests
"
])
editable_install
(
session
,
[
"
alltrafos
"
,
"
use_cython
"
,
"
interactive
"
,
"
tests
"
])
run_testsuite
(
session
)
run_testsuite
(
session
)
...
@@ -146,7 +154,9 @@ def testsuite_pystencils2(session: nox.Session, cupy_version: str | None):
...
@@ -146,7 +154,9 @@ def testsuite_pystencils2(session: nox.Session, cupy_version: str | None):
@nox.session
@nox.session
def
quicktest
(
session
:
nox
.
Session
):
def
quicktest
(
session
:
nox
.
Session
):
parser
=
ArgumentParser
()
parser
=
ArgumentParser
()
parser
.
add_argument
(
"
--sympy-master
"
,
action
=
"
store_true
"
,
help
=
"
Use latest SymPy master revision
"
)
parser
.
add_argument
(
"
--sympy-master
"
,
action
=
"
store_true
"
,
help
=
"
Use latest SymPy master revision
"
)
args
=
parser
.
parse_args
(
session
.
posargs
)
args
=
parser
.
parse_args
(
session
.
posargs
)
install_pystencils_master
(
session
)
install_pystencils_master
(
session
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment