Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils-sfg
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
pystencils-sfg
Commits
1f52da23
Commit
1f52da23
authored
5 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
fix python versions in nox sessions
parent
14f14723
No related branches found
No related tags found
1 merge request
!10
Introduce Nox for Test Automation
Pipeline
#71550
passed
5 months ago
Stage: Code Quality
Stage: Tests
Stage: Documentation
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
noxfile.py
+7
-5
7 additions, 5 deletions
noxfile.py
with
8 additions
and
6 deletions
.gitlab-ci.yml
+
1
−
1
View file @
1f52da23
...
@@ -36,7 +36,7 @@ testsuite:
...
@@ -36,7 +36,7 @@ testsuite:
-
docker
-
docker
before_script
:
before_script
:
-
pip install "git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev"
-
pip install "git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev"
-
pip install -e .[tests]
-
pip install -e .[tests
uite
]
script
:
script
:
-
pytest -v --cov=src/pystencilssfg --cov-report=term --cov-config=pyproject.toml
-
pytest -v --cov=src/pystencilssfg --cov-report=term --cov-config=pyproject.toml
-
coverage html
-
coverage html
...
...
This diff is collapsed.
Click to expand it.
noxfile.py
+
7
−
5
View file @
1f52da23
...
@@ -18,7 +18,7 @@ def add_pystencils_git(session: nox.Session):
...
@@ -18,7 +18,7 @@ def add_pystencils_git(session: nox.Session):
"
--branch
"
,
"
--branch
"
,
"
v2.0-dev
"
,
"
v2.0-dev
"
,
"
--single-branch
"
,
"
--single-branch
"
,
"
git@
i10git.cs.fau.de
:
pycodegen/pystencils.git
"
,
"
https://
i10git.cs.fau.de
/
pycodegen/pystencils.git
"
,
pystencils_dir
,
pystencils_dir
,
external
=
True
,
external
=
True
,
)
)
...
@@ -29,10 +29,12 @@ def editable_install(session: nox.Session, opts: Sequence[str] = ()):
...
@@ -29,10 +29,12 @@ def editable_install(session: nox.Session, opts: Sequence[str] = ()):
add_pystencils_git
(
session
)
add_pystencils_git
(
session
)
if
opts
:
if
opts
:
opts_str
=
"
[
"
+
"
,
"
.
join
(
opts
)
+
"
]
"
opts_str
=
"
[
"
+
"
,
"
.
join
(
opts
)
+
"
]
"
else
:
opts_str
=
""
session
.
install
(
"
-e
"
,
f
"
.
{
opts_str
}
"
)
session
.
install
(
"
-e
"
,
f
"
.
{
opts_str
}
"
)
@nox.session
(
tags
=
[
"
qa
"
,
"
code-quality
"
])
@nox.session
(
python
=
"
3.10
"
,
tags
=
[
"
qa
"
,
"
code-quality
"
])
def
lint
(
session
:
nox
.
Session
):
def
lint
(
session
:
nox
.
Session
):
"""
Lint code using flake8
"""
"""
Lint code using flake8
"""
...
@@ -40,7 +42,7 @@ def lint(session: nox.Session):
...
@@ -40,7 +42,7 @@ def lint(session: nox.Session):
session
.
run
(
"
flake8
"
,
"
src/pystencilssfg
"
)
session
.
run
(
"
flake8
"
,
"
src/pystencilssfg
"
)
@nox.session
(
tags
=
[
"
qa
"
,
"
code-quality
"
])
@nox.session
(
python
=
"
3.10
"
,
tags
=
[
"
qa
"
,
"
code-quality
"
])
def
typecheck
(
session
:
nox
.
Session
):
def
typecheck
(
session
:
nox
.
Session
):
"""
Run MyPy for static type checking
"""
"""
Run MyPy for static type checking
"""
editable_install
(
session
)
editable_install
(
session
)
...
@@ -48,7 +50,7 @@ def typecheck(session: nox.Session):
...
@@ -48,7 +50,7 @@ def typecheck(session: nox.Session):
session
.
run
(
"
mypy
"
,
"
src/pystencilssfg
"
)
session
.
run
(
"
mypy
"
,
"
src/pystencilssfg
"
)
@nox.session
(
tags
=
[
"
tests
"
])
@nox.session
(
python
=
[
"
3.10
"
],
tags
=
[
"
tests
"
])
def
testsuite
(
session
:
nox
.
Session
):
def
testsuite
(
session
:
nox
.
Session
):
"""
Run the testsuite and measure coverage.
"""
"""
Run the testsuite and measure coverage.
"""
editable_install
(
session
,
[
"
testsuite
"
])
editable_install
(
session
,
[
"
testsuite
"
])
...
@@ -69,7 +71,7 @@ def report_coverage(session: nox.Session):
...
@@ -69,7 +71,7 @@ def report_coverage(session: nox.Session):
session
.
run
(
"
coverage
"
,
"
xml
"
)
session
.
run
(
"
coverage
"
,
"
xml
"
)
@nox.session
(
tags
=
[
"
docs
"
])
@nox.session
(
python
=
[
"
3.10
"
],
tags
=
[
"
docs
"
])
def
docs
(
session
:
nox
.
Session
):
def
docs
(
session
:
nox
.
Session
):
"""
Build the documentation pages
"""
"""
Build the documentation pages
"""
editable_install
(
session
,
[
"
docs
"
])
editable_install
(
session
,
[
"
docs
"
])
...
...
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