From e1b135c667447c157c87ac7de6a1b8913aa02166 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 13 Dec 2021 22:37:07 +0100 Subject: [PATCH] ci: only run integration tests once --- .gitlab-ci.yml | 52 +++++++++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 30 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a622deb6..ac5a8b62 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,28 @@ test: - pip3 install emoji aiohttp - ./run_tests.py +test-3.10: + stage: test + tags: + - docker + image: python:3.10 + script: + - apt update + - apt install -y python3 python3-pip cython3 gpg + - pip3 install emoji aiohttp + - ./run_tests.py + +test-3.11: + stage: test + tags: + - docker + image: python:3.11-rc + script: + - apt update + - apt install -y python3 python3-pip cython3 gpg + - pip3 install emoji aiohttp + - ./run_tests.py + test_integration: stage: test tags: @@ -38,36 +60,6 @@ test_integration: - pip3 install emoji aiohttp aiodns - ./run_integration_tests.py -test_integration-3.10: - stage: test - tags: - - docker - image: python:3.10 - only: - variables: - - $CI_ACCOUNT1 - - $CI_ACCOUNT2 - script: - - apt update - - apt install -y python3 python3-pip cython3 gpg - - pip3 install emoji aiohttp aiodns - - ./run_integration_tests.py - -test_integration-3.11: - stage: test - tags: - - docker - image: python:3.11-rc - only: - variables: - - $CI_ACCOUNT1 - - $CI_ACCOUNT2 - script: - - apt update - - apt install -y python3 python3-pip cython3 gpg - - pip3 install emoji aiohttp aiodns - - ./run_integration_tests.py - trigger_poezio: stage: trigger tags: