Skip to content

Commit

Permalink
test with juju2.9 using a constraints file on pylibjuju
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Mar 7, 2024
1 parent cd1338c commit 1cc0ec0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
juju: ["3/stable", 3.1/stable]
juju: ["3/stable", 2.9/stable]
timeout-minutes: 360
steps:
- name: Check out code
Expand All @@ -52,6 +52,10 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Constrain Tox Environment for juju 2.9
if: ${{ matrix.juju == '2.9/stable' }}
run: |
echo "TEST_CONSTRAINTS_FILE=constraints-juju29.txt" >> $GITHUB_ENV
- name: Install Dependencies
run: |
pip install tox
Expand Down
1 change: 1 addition & 0 deletions constraints-juju29.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
juju < 3.0
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ commands = flake8 reactive lib tests unit_tests

[testenv:func]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
deps =
-c {env:TEST_CONSTRAINTS_FILE:https://raw.githubusercontent.com/openstack-charmers/zaza-openstack-tests/master/constraints/constraints-2024.1.txt}
-r{toxinidir}/test-requirements.txt
allowlist_externals =
/bin/bash
/bin/ln
Expand Down

0 comments on commit 1cc0ec0

Please sign in to comment.