Skip to content

Commit

Permalink
run tests as separate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Jul 18, 2024
1 parent 3526fdc commit 759f9ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
needs: build
strategy:
matrix:
env: [integration]
env: [integration, ha-integration, tls-integration]
fail-fast: false
steps:
- name: Checkout repository
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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

0 comments on commit 759f9ee

Please sign in to comment.