diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e1f9c0c02..70b047217 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: @@ -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 diff --git a/tox.ini b/tox.ini index d08df443b..62d50e956 100644 --- a/tox.ini +++ b/tox.ini @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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