From 10bdea930f69e2a238e1fec9b6b594af5e68bc9d Mon Sep 17 00:00:00 2001 From: amaal <amaal@dtu.dk> Date: Wed, 17 Mar 2021 10:37:31 +0100 Subject: [PATCH] Add new file --- test | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test diff --git a/test b/test new file mode 100644 index 0000000..c6873fe --- /dev/null +++ b/test @@ -0,0 +1,23 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml + +image: python:latest +stages: + - linting + - test +before_script: + - cat /proc/version #print out operations system + - python -V # Print out python version for debugging + - pip install pytest flake8 + - if [ -f requirements.txt ]; then pip install -r requirements.txt;fi + +linting: + stage: linting + script: + - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + +test: + stage: test + script: + - pytest example.py -- GitLab