Skip to content
Snippets Groups Projects
Commit 3fafaadb authored by David Huckebrink's avatar David Huckebrink
Browse files

Update .gitlab-ci.yml file

parent 9a519de1
No related branches found
No related tags found
No related merge requests found
Pipeline #20732 canceled
......@@ -17,26 +17,23 @@
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
image: docker:latest
services:
- docker:dind
stages:
- build
- create_env
- test
build:
stage: build
env-creation:
stage: create_env
script:
- docker build -t abm-image .
only:
- merge_request
- conda env create -f env.yml
test:
test-job:
stage: test
script:
- docker run abm-image python -m pytest -v
- conda activate tau
- python -m pytest -v
only:
- merge_request
......@@ -44,7 +41,7 @@ test:
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).
script:
- docker run abm-image black .
- black .
# deploy-job: # This job runs in the deploy stage.
# stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment