Skip to content
Snippets Groups Projects
Commit b3198c02 authored by Robert Rosca's avatar Robert Rosca
Browse files

Move venv to before script

parent 1b81bd4c
No related branches found
No related tags found
1 merge request!437Fix/requirements into setuppy
...@@ -6,6 +6,9 @@ checks: ...@@ -6,6 +6,9 @@ checks:
stage: check stage: check
only: [merge_requests] only: [merge_requests]
allow_failure: true allow_failure: true
before_script:
- python3 -m venv .venv
- source .venv/bin/activate
script: script:
- export PATH=/home/gitlab-runner/.local/bin:$PATH - export PATH=/home/gitlab-runner/.local/bin:$PATH
# We'd like to run the pre-commit hooks only on files that are being # We'd like to run the pre-commit hooks only on files that are being
...@@ -34,9 +37,9 @@ pytest: ...@@ -34,9 +37,9 @@ pytest:
- ssh-keyscan -p 10022 git.xfel.eu > $CI_PROJECT_DIR/.ssh/known_hosts - ssh-keyscan -p 10022 git.xfel.eu > $CI_PROJECT_DIR/.ssh/known_hosts
- ls $CI_PROJECT_DIR/.ssh - ls $CI_PROJECT_DIR/.ssh
- echo $GIT_SSH_COMMAND - echo $GIT_SSH_COMMAND
script:
- python3 -m venv .venv - python3 -m venv .venv
- source .venv/bin/activate - source .venv/bin/activate
script:
- python3 -m pip install --upgrade pip - python3 -m pip install --upgrade pip
- python3 -m pip install ".[test]" - python3 -m pip install ".[test]"
- python3 -m pytest --cov=cal_tools --cov=xfel_calibrate --ignore=tests/legacy - python3 -m pytest --cov=cal_tools --cov=xfel_calibrate --ignore=tests/legacy
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