From f43075d907ede35dfcba1eb90a7d55fe99f1a996 Mon Sep 17 00:00:00 2001 From: Bryan Bailey Date: Mon, 14 Mar 2022 23:16:01 -0400 Subject: [PATCH] testing new pipeline --- .gitlab-ci.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) 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 +