Skip to content

Commit

Permalink
Address issues testing juju2.9 on python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Sep 24, 2024
1 parent a5cc90b commit 3ecb692
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ jobs:
# The `CONTROLLER_NAME` envvar is set by this actions
run: echo "name=$CONTROLLER_NAME" >> $GITHUB_OUTPUT
- name: Setup lxd controller
uses: charmed-kubernetes/actions-operator@main
uses: ./
with:
provider: lxd
- name: Save lxd controller name
Expand Down
1 change: 1 addition & 0 deletions tests/constraints-2.9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cython<3
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ passenv = HOME
setenv =
PYTHONPATH={toxinidir}/src:{toxinidir}/lib
deps =
macaroonbakery!=1.3.3
pytest
pytest-operator
commands = pytest -v --tb native --show-capture=no --log-cli-level=INFO -s {posargs} {toxinidir}/tests/


[testenv:2.9-tests]
setenv =
PIP_CONSTRAINT={toxinidir}/tests/constraints-2.9.txt
install_command = python -m pip install {opts} {packages}
deps =
juju<3.1
{[testenv]deps}
Expand Down

0 comments on commit 3ecb692

Please sign in to comment.