diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81316002285c9ae161670306003535d2c919bf6d..9bb07c56be16fa72d76daa83c0887951755e53a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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).