Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
IRF from KM3NeT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
ESCAPE2020
virtual-environment
IRF from KM3NeT
Commits
3aafabdb
Commit
3aafabdb
authored
2 years ago
by
Misha Smirnov
Browse files
Options
Downloads
Patches
Plain Diff
some changes in cicd
parent
fb1b2ae3
No related branches found
Branches containing commit
No related tags found
1 merge request
!7
Add CICD for test
Pipeline
#219726
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+29
-12
29 additions, 12 deletions
.gitlab-ci.yml
with
29 additions
and
12 deletions
.gitlab-ci.yml
+
29
−
12
View file @
3aafabdb
image
:
python:3.
9
-slim
image
:
python:3.
8
-slim
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
...
...
@@ -11,17 +11,34 @@ cache:
paths
:
-
.cache/pip
before_script
:
-
python -V
# Print out python version for debugging
-
pip install virtualenv
-
virtualenv venv
-
source venv/bin/activate
stages
:
-
test
.virtualenv_template
:
&virtualenv_definition
|
python -V
python3 -m venv venv
source venv/bin/activate
pip install -U pip setuptools wheel setuptools_scm
pip install pytest
test-python3.9
:
script
:
-
pip install pytest
-
pytest ./tests/test_general.py
-
pip install flake8
-
flake8 .
test-python3.8
:
stage
:
test
script
:
-
*virtualenv_definition
-
pytest ./tests/test_general.py
# before_script:
# - python -V # Print out python version for debugging
# - pip install virtualenv
# - virtualenv venv
# - source venv/bin/activate
# test-python3.8:
# script:
# - pip install pytest
# - pytest ./tests/test_general.py
# - pip install flake8
# - flake8 .
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment