Skip to content

Commit

Permalink
Pass a constraint to pin libjuju 3.x in the functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
freyes committed Jan 17, 2024
1 parent de73779 commit c42c965
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,24 @@ jobs:
- 2.9/stable
- 3.1/stable
- 3.2/stable
- 3.3/stable
bundle:
- first
- second
- third
include:
- juju_channel: 2.9/stable
extra: juju-29
snap_install_flags: "--classic"
pip_constraints: constraints-juju29.txt
- juju_channel: 3.1/stable
extra: juju-31
snap_install_flags: ""
pip_constraints: constraints-juju31.txt
- juju_channel: 3.2/stable
extra: juju-32
snap_install_flags: ""
pip_constraints: constraints-juju32.txt
- juju_channel: 3.3/stable
snap_install_flags: ""
pip_constraints: constraints-juju33.txt
env:
TEST_ZAZA_BUG_LP1987332: "on" # http://pad.lv/1987332
needs: build
Expand All @@ -84,6 +88,10 @@ jobs:
- name: Install dependencies
run: |
set -euxo pipefail
sudo apt-get update
sudo apt-get install -yq snapd
sudo systemctl enable snapd
sudo systemctl restart snapd
python -m pip install --upgrade pip
pip install tox tox-gh-actions
sudo snap install ${{ matrix.snap_install_flags }} --channel ${{ matrix.juju_channel }} juju
Expand All @@ -105,7 +113,8 @@ jobs:
run: |
set -euxo pipefail
mkdir logs
env EXTRA=${{ matrix.extra }} tox -e func-target -- ${{ matrix.bundle }} | tee logs/tox-output.txt
export PIP_CONSTRAINTS=$(pwd)/${{ matrix.pip_constraints }}
tox -e func-target -- ${{ matrix.bundle }} | tee logs/tox-output.txt
- name: crashdump on failure
if: failure()
run: |
Expand Down
4 changes: 0 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,12 @@ commands = /bin/true

[flake8]
ignore = E402,E226,W504
deps = -r{toxinidir}/test-requirements.txt
per-file-ignores =
unit_tests/**: D

[testenv:docs]
basepython = python3
changedir = doc/source
deps =
-r{toxinidir}/doc-requirements.txt
commands = sphinx-build -W -b html -d {toxinidir}/doc/build/doctrees . {toxinidir}/doc/build/html

[testenv:func]
Expand All @@ -55,7 +52,6 @@ commands =

[testenv:func-target]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands =
{envdir}/bin/python3 setup.py install
functest-run-suite --keep-model --bundle {posargs}
Expand Down

0 comments on commit c42c965

Please sign in to comment.