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: ...@@ -30,17 +30,13 @@ typechecker:
testsuite: testsuite:
stage: "Tests" stage: "Tests"
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full image: i10git.cs.fau.de:5005/pycodegen/pycodegen/nox
needs: [] needs: []
tags: tags:
- docker - docker
before_script:
- pip install "git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev"
- pip install -e .[testsuite]
script: script:
- pytest -v --cov=src/pystencilssfg --cov-report=term --cov-config=pyproject.toml - nox --session testsuite
- coverage html - nox --session report_coverage
- coverage xml
coverage: '/TOTAL.*\s+(\d+%)$/' coverage: '/TOTAL.*\s+(\d+%)$/'
artifacts: artifacts:
when: always when: always
...@@ -54,14 +50,10 @@ testsuite: ...@@ -54,14 +50,10 @@ testsuite:
build-documentation: build-documentation:
stage: "Documentation" stage: "Documentation"
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full image: i10git.cs.fau.de:5005/pycodegen/pycodegen/nox
needs: [] needs: []
before_script:
- pip install "git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev"
- pip install -e .[docs]
script: script:
- cd docs - nox --session docs
- make html
tags: tags:
- docker - docker
artifacts: artifacts:
......
...@@ -63,7 +63,7 @@ def testsuite(session: nox.Session): ...@@ -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): def report_coverage(session: nox.Session):
"""Produce HTML and XML coverage reports""" """Produce HTML and XML coverage reports"""
session.install("coverage[toml]") session.install("coverage[toml]")
...@@ -79,7 +79,7 @@ def docs(session: nox.Session): ...@@ -79,7 +79,7 @@ def docs(session: nox.Session):
session.run("make", "html", external=True) session.run("make", "html", external=True)
@nox.session(default=False) @nox.session()
def dev(session: nox.Session): def dev(session: nox.Session):
"""Set up the development environment at .venv""" """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