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
4240221a
Commit
4240221a
authored
4 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
update CI and noxfile
parent
1f52da23
No related branches found
No related tags found
1 merge request
!10
Introduce Nox for Test Automation
Pipeline
#71678
passed
4 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
+5
-13
5 additions, 13 deletions
.gitlab-ci.yml
noxfile.py
+2
-2
2 additions, 2 deletions
noxfile.py
with
7 additions
and
15 deletions
.gitlab-ci.yml
+
5
−
13
View file @
4240221a
...
...
@@ -30,17 +30,13 @@ typechecker:
testsuite
:
stage
:
"
Tests"
image
:
i10git.cs.fau.de:5005/pycodegen/pycodegen/
full
image
:
i10git.cs.fau.de:5005/pycodegen/pycodegen/
nox
needs
:
[]
tags
:
-
docker
before_script
:
-
pip install "git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev"
-
pip install -e .[testsuite]
script
:
-
pytest -v --cov=src/pystencilssfg --cov-report=term --cov-config=pyproject.toml
-
coverage html
-
coverage xml
-
nox --session testsuite
-
nox --session report_coverage
coverage
:
'
/TOTAL.*\s+(\d+%)$/'
artifacts
:
when
:
always
...
...
@@ -54,14 +50,10 @@ testsuite:
build-documentation
:
stage
:
"
Documentation"
image
:
i10git.cs.fau.de:5005/pycodegen/pycodegen/
full
image
:
i10git.cs.fau.de:5005/pycodegen/pycodegen/
nox
needs
:
[]
before_script
:
-
pip install "git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev"
-
pip install -e .[docs]
script
:
-
cd docs
-
make html
-
nox --session docs
tags
:
-
docker
artifacts
:
...
...
This diff is collapsed.
Click to expand it.
noxfile.py
+
2
−
2
View file @
4240221a
...
...
@@ -63,7 +63,7 @@ def testsuite(session: nox.Session):
)
@nox.session
(
tags
=
[
"
report
"
])
@nox.session
(
python
=
"
3.10
"
,
tags
=
[
"
report
"
])
def
report_coverage
(
session
:
nox
.
Session
):
"""
Produce HTML and XML coverage reports
"""
session
.
install
(
"
coverage[toml]
"
)
...
...
@@ -79,7 +79,7 @@ def docs(session: nox.Session):
session
.
run
(
"
make
"
,
"
html
"
,
external
=
True
)
@nox.session
(
default
=
False
)
@nox.session
()
def
dev
(
session
:
nox
.
Session
):
"""
Set up the development environment at .venv
"""
...
...
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