Skip to content
Snippets Groups Projects
Commit 3aafabdb authored by Misha Smirnov's avatar Misha Smirnov
Browse files

some changes in cicd

parent fb1b2ae3
No related branches found
No related tags found
1 merge request!7Add CICD for test
Pipeline #219726 passed
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 .
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