From 759f9eebb7f7b7f8c46120b8cbd93cae3876c03a Mon Sep 17 00:00:00 2001 From: Mia Altieri Date: Thu, 18 Jul 2024 07:22:56 +0000 Subject: [PATCH] run tests as separate jobs --- .github/workflows/integration.yaml | 2 +- tox.ini | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index b1d7f6b..194ac2a 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -20,7 +20,7 @@ jobs: needs: build strategy: matrix: - env: [integration] + env: [integration, ha-integration, tls-integration] fail-fast: false steps: - name: Checkout repository diff --git a/tox.ini b/tox.ini index 1ed7ea3..5b80184 100644 --- a/tox.ini +++ b/tox.ini @@ -30,7 +30,7 @@ commands = bash -ec 'microk8s ctr image import {env:name}_*-$(yq .base rockcraft.yaml | \ cut -c 8-)_edge_amd64.rock --base-name {env:registry_namespace}/{env:name}' bash -ec 'if ! [ -d operator ]; then git clone --single-branch --branch {env:branch} {env:repo} operator; fi' {posargs} - tox --workdir operator -c operator -e integration -- --keep-models + tox --workdir operator -c operator -e integration -- tests/integration/test_charm.py [testenv:ha-integration] @@ -45,7 +45,7 @@ commands = bash -ec 'microk8s ctr image import {env:name}_*-$(yq .base rockcraft.yaml | \ cut -c 8-)_edge_amd64.rock --base-name {env:registry_namespace}/{env:name}' bash -ec 'if ! [ -d operator ]; then git clone --single-branch --branch {env:branch} {env:repo} operator; fi' {posargs} - tox --workdir operator -c operator -e ha-integration -- --keep-models + tox --workdir operator -c operator -e integration --tests/integration/ha_tests/test_ha.py [testenv:tls-integration] @@ -60,4 +60,4 @@ commands = bash -ec 'microk8s ctr image import {env:name}_*-$(yq .base rockcraft.yaml | \ cut -c 8-)_edge_amd64.rock --base-name {env:registry_namespace}/{env:name}' bash -ec 'if ! [ -d operator ]; then git clone --single-branch --branch {env:branch} {env:repo} operator; fi' {posargs} - tox --workdir operator -c operator -e tls-integration + tox --workdir operator -c operator -e integration --tests/integration/tls_tests/test_tls.py