diff options
| -rw-r--r-- | .gitlab-ci.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9350639 --- /dev/null +++ b/.gitlab-ci.yml | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | stages: | ||
| 2 | - test | ||
| 3 | |||
| 4 | variables: | ||
| 5 | IMAGE: $CI_REGISTRY_IMAGE:pipeline-$CI_PIPELINE_ID | ||
| 6 | |||
| 7 | image: registry.lan.tomvanderlee.com/pyenv-images/:latest | ||
| 8 | |||
| 9 | test: | ||
| 10 | image: $IMAGE | ||
| 11 | stage: test | ||
| 12 | script: | ||
| 13 | - pyenv install 3.12 | ||
| 14 | - pyenv global 3.12 | ||
| 15 | - pip install -r requirements.txt | ||
| 16 | - pytest -m aoc | ||
