Skip to content
Snippets Groups Projects
Commit 1f4cef63 authored by Rebecca Kohlhaas's avatar Rebecca Kohlhaas
Browse files

Pipeline: run tests only if there are changes in the sources or tests.

Added first try of running the examples as well.
parent d66130b4
No related branches found
No related tags found
2 merge requests!29Preparation for release 1.1.0: fixes and test for pages,!28Merge to circumvent issues
Pipeline #45781 failed
......@@ -66,12 +66,24 @@ unit-test-job: # This job runs in the test stage.
- pytest --junitxml=report.xml
#- python -m pytest # tests/
artifacts:
artifacts:
when: always
paths:
- report.xml
reports:
junit: report.xml
rules:
- changes:
- src/**/*
- tests/**/*
when: always
example-test-job:
stage: test
script:
- pip install -e .
- python examples/analytical-function/example_analytical_function.py
- echo "Example `analytical-function` ran through."
when: always
lint-test-job: # This job also runs in the test stage.
stage: test # It can run at the same time as unit-test-job (in parallel).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment