From 35c809a7265b3923affc1e0082f3d4fb39ff9090 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 28 Nov 2023 23:58:50 +0100 Subject: [PATCH] ci: simplify 'test actionsmap' job, move it to linting --- .gitlab/ci/lint.gitlab-ci.yml | 8 ++++++++ .gitlab/ci/test.gitlab-ci.yml | 8 -------- tests/test_actionmap.py | 5 ----- 3 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 tests/test_actionmap.py diff --git a/.gitlab/ci/lint.gitlab-ci.yml b/.gitlab/ci/lint.gitlab-ci.yml index 3696567b8..5a8351413 100644 --- a/.gitlab/ci/lint.gitlab-ci.yml +++ b/.gitlab/ci/lint.gitlab-ci.yml @@ -3,6 +3,14 @@ ######################################## # later we must fix lint and format-check jobs and remove "allow_failure" +actionsmap: + stage: lint + image: "before-install" + needs: [] + script: + - python -c 'import yaml; yaml.safe_load(open("share/actionsmap.yml"))' + - python -c 'import yaml; yaml.safe_load(open("share/actionsmap-portal.yml"))' + lint311: stage: lint image: "before-install" diff --git a/.gitlab/ci/test.gitlab-ci.yml b/.gitlab/ci/test.gitlab-ci.yml index e676b860e..72b067970 100644 --- a/.gitlab/ci/test.gitlab-ci.yml +++ b/.gitlab/ci/test.gitlab-ci.yml @@ -48,14 +48,6 @@ # reports: # junit: report.xml -test-actionmap: - extends: .test-stage - script: - - python3 -m pytest tests/test_actionmap.py -# only: -# changes: -# - share/actionsmap.yml - test-helpers: extends: .test-stage script: diff --git a/tests/test_actionmap.py b/tests/test_actionmap.py deleted file mode 100644 index e482bdfe1..000000000 --- a/tests/test_actionmap.py +++ /dev/null @@ -1,5 +0,0 @@ -import yaml - - -def test_yaml_syntax(): - yaml.safe_load(open("share/actionsmap.yml"))