From 721cd74f34ac3241966025203a87b27e4b0d5068 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Tue, 8 Jun 2021 18:31:51 +0200 Subject: [PATCH] [ci] #103: Change .gitlab-ci.yml and rm make test rule Install dev dependencies into the tests jobs to install pytest Remove `test` rule from the Makefile --- .gitlab-ci.yml | 4 ++-- Makefile | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ad5bf26..f945db0a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -68,8 +68,8 @@ lint: stage: tests image: $DOCKER_IMAGE/$PYTHON_VERSION:latest script: - - poetry install --no-dev - - make tests + - poetry install + - poetry run pytest tests-3.6: extends: .tests diff --git a/Makefile b/Makefile index bac812af..717e4f98 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,10 @@ -.PHONY: docs tests check check-format mypy pylint format build deploy deploy_test +.PHONY: docs check check-format mypy pylint format build deploy deploy_test .SILENT: deploy deploy_test # do not echo commands with password # generate documentation docs: cd docs && rm duniterpy.*; poetry run sphinx-apidoc -o . ../duniterpy && make clean && make html && cd .. -# run tests -tests: - poetry run python3 -m unittest ${TESTS_FILTER} - # check check: mypy pylint check-format -- GitLab