diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 94d8b0f..0df3458 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,17 @@ -pytest: - stage: test +image: python:latest +variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" +cache: + paths: + - .cache/pip + - venv +before_script: + - python --version + - pip install virtualenv + - virtualenv venv + - source venv/bin/activate + - pip install -r requirements.txt +test: script: - - pytest --junitxml report.xml yoink/tests/test_basic.py - artifacts: - when: always - reports: - junit: report.xml \ No newline at end of file + - pytest --junitxml report.xml yoink/tests/test_basic.py +