Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INDEPENDET] Juju 3 tests over main #174

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ jobs:
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
channel: "1.26-strict/stable"
# This is needed until https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 2.9.29"
bootstrap-options: "--agent-version 3.1.2"
bootstrap-constraints: "cores=2 mem=2G"
juju-channel: "3.1/stable"
- name: Download packed charm(s)
uses: actions/download-artifact@v3
with:
Expand All @@ -88,7 +90,7 @@ jobs:
fi
- name: Run integration tests
# set a predictable model name so it can be consumed by charm-logdump-action
run: sg microk8s -c "tox run -e ${{ matrix.tox-environments }} -- --model testing -m '${{ steps.select-tests.outputs.mark_expression }}'"
run: sg snap_microk8s -c "tox run -e ${{ matrix.tox-environments }} -- --model testing -m '${{ steps.select-tests.outputs.mark_expression }}'"
env:
CI_PACKED_CHARMS: ${{ needs.build.outputs.charms }}
- name: Dump logs
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pass_env =
CI_PACKED_CHARMS
commands_pre =
poetry install --with integration
poetry run pip install juju==2.9.42.1
poetry run pip install juju==3.1.2.0
commands =
poetry run pytest -v --tb native --log-cli-level=INFO -s {posargs} {[vars]tests_path}/integration/test_charm.py

Expand All @@ -79,7 +79,7 @@ pass_env =
CI_PACKED_CHARMS
commands_pre =
poetry install --with integration
poetry run pip install juju==2.9.42.1
poetry run pip install juju==3.1.2.0
commands =
poetry run pytest -v --tb native --log-cli-level=INFO -s --durations=0 {posargs} {[vars]tests_path}/integration/ha_tests/test_ha.py

Expand All @@ -91,7 +91,7 @@ pass_env =
CI_PACKED_CHARMS
commands_pre =
poetry install --with integration
poetry run pip install juju==2.9.42.1
poetry run pip install juju==3.1.2.0
commands =
poetry run pytest -v --tb native --log-cli-level=INFO -s --durations=0 {posargs} {[vars]tests_path}/integration/metrics_tests/test_metrics.py

Expand All @@ -104,7 +104,7 @@ pass_env =
CI_PACKED_CHARMS
commands_pre =
poetry install --with integration
poetry run pip install juju==2.9.42.1
poetry run pip install juju==3.1.2.0
commands =
poetry run pytest -v --tb native --log-cli-level=INFO -s --durations=0 {posargs} {[vars]tests_path}/integration/tls_tests/test_tls.py

Expand All @@ -116,7 +116,7 @@ pass_env =
CI_PACKED_CHARMS
commands_pre =
poetry install --with integration
poetry run pip install juju==2.9.42.1
poetry run pip install juju==3.1.2.0
commands =
poetry run pytest -v --tb native --log-cli-level=INFO -s --durations=0 {posargs} {[vars]tests_path}/integration/relation_tests/test_charm_relations.py

Expand All @@ -128,7 +128,7 @@ pass_env =
CI_PACKED_CHARMS
commands_pre =
poetry install --with integration
poetry run pip install juju==2.9.42.1
poetry run pip install juju==3.1.2.0
commands =
poetry run pytest -v --tb native --log-cli-level=INFO -s --durations=0 {posargs} {[vars]tests_path}/integration/test_teardown.py

Expand Down
Loading