From 878a829889d009031db30a54a22e063eabb4f6e0 Mon Sep 17 00:00:00 2001 From: Hans Fangohr <fangohr@users.noreply.github.com> Date: Sun, 21 May 2023 15:24:46 +0200 Subject: [PATCH] first attempt to have tests (fake tests only) --- .gitlab-ci.yaml | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .gitlab-ci.yaml diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml new file mode 100644 index 0000000..c85c15c --- /dev/null +++ b/.gitlab-ci.yaml @@ -0,0 +1,52 @@ +image: python:latest + +stages: + - test-style + - test + +before_script: + - cat /etc/issue + - python -V + - which python + - python -m venv ../venv + - source ../venv/bin/activate + - which python + - pwd + - pip install -U pip + - pip --version + - pip install pytest + - pytest --version + + +style: + stage: test-style + image: python:latest + script: + - black --version + - ruff --version + - ruff . + - black --check --diff . + + +test3-09: + stage: test + image: python:3.9 + script: + - echo "run tests here later" + - python --version + +test3-10: + stage: test + image: python:3.10 + script: + - echo "run tests here later" + - python --version + + +test3-11: + stage: test + image: python:3.11 + script: + - echo "run tests here later" + - python --version + -- GitLab