Skip to content

Commit

Permalink
Test GH keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoflorido committed Apr 2, 2024
1 parent cc7493b commit 570c5b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:

jobs:

extra-args:
runs-on: ubuntu-latest
outputs:
Expand All @@ -14,6 +15,8 @@ jobs:
id: flags
env:
TITLE: ${{ github.event.pull_request.title }}
JOB: ${{ github.job }}
WORKFLOW: ${{ github.workflow }}
run: |
EXTRA_ARGS="--crash-dump=on-failure"
if [[ "$TITLE" == *"[COS]"* ]]; then
Expand All @@ -37,15 +40,16 @@ jobs:
needs: [build-all-charms, extra-args]
strategy:
matrix:
suite: ["-k test_etcd", "-k test_k8s"]
suite: ["k8s", "etcd"]
secrets: inherit
with:
provider: lxd
juju-channel: 3.3/stable
extra-arguments: ${{needs.extra-args.outputs.args}} ${{ matrix.suite }}
extra-arguments: ${{needs.extra-args.outputs.args}} -k test_${{ matrix.suite }}
load-test-enabled: false
zap-enabled: false
trivy-fs-enabled: true
trivy-image-config: "trivy.yaml"
tmate-debug: true
test-timeout: 120
test-tox-env: integration-${{ matrix.suite }}
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ deps =
commands =
bandit -c {toxinidir}/pyproject.toml -r {[vars]all_path}

[testenv:integration]
[testenv:{integration,integration-k8s,integration-etcd}]
description = Run integration tests
deps = -r test_requirements.txt
commands =
Expand Down

0 comments on commit 570c5b1

Please sign in to comment.