Skip to content
Snippets Groups Projects
Commit 4240221a authored by Frederik Hennig's avatar Frederik Hennig
Browse files

update CI and noxfile

parent 1f52da23
No related branches found
No related tags found
1 merge request!10Introduce Nox for Test Automation
Pipeline #71678 passed
......@@ -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:
......
......@@ -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"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment