forked from juju/python-libjuju
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#1217 from dimaqq/ci-bring-unit-tests-back-to-…
…life juju#1217 A few changes interplayed badly and we were running `tox -e py3` in github actions, which only installed the dependencies and didn't run the unit tests 😱 This PR: - run unit tests again - run integration tests against Juju 3.6
- Loading branch information
Showing
3 changed files
with
25 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,16 +31,12 @@ jobs: | |
python: | ||
- "3.10" | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install dependencies | ||
run: pip install tox | ||
- name: Run validation tests | ||
run: tox -e validate | ||
- uses: astral-sh/[email protected] | ||
- run: uvx -p ${{ matrix.python }} tox -e validate | ||
|
||
unit-tests: | ||
name: Unit tests | ||
|
@@ -56,16 +52,12 @@ jobs: | |
- "3.12" | ||
- "3.13" | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install dependencies | ||
run: pip install tox | ||
- name: Run unit tests | ||
run: tox -e py3 | ||
- uses: astral-sh/[email protected] | ||
- run: uvx -p ${{ matrix.python }} tox -e unit | ||
|
||
integration: | ||
name: Integration | ||
|
@@ -85,21 +77,14 @@ jobs: | |
- "3.3/stable" | ||
- "3.4/stable" | ||
- "3.5/stable" | ||
# A bunch of tests fail with juju.errors.JujuError: base: [email protected]/stable | ||
# * test_subordinate_units | ||
# * test_destroy_unit | ||
# * test_ssh | ||
# * ... | ||
# - "3.6/beta" | ||
- "3.6/candidate" | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Setup operator environment | ||
uses: charmed-kubernetes/actions-operator@main | ||
- uses: astral-sh/[email protected] | ||
- uses: charmed-kubernetes/actions-operator@main | ||
with: | ||
provider: lxd | ||
juju-channel: ${{ matrix.juju }} | ||
|
@@ -131,9 +116,7 @@ jobs: | |
# # set model defaults | ||
# juju model-defaults apt-http-proxy=$PROXY apt-https-proxy=$PROXY juju-http-proxy=$PROXY juju-https-proxy=$PROXY snap-http-proxy=$PROXY snap-https-proxy=$PROXY | ||
# juju model-defaults | ||
- name: Run integration | ||
# Force one single concurrent test | ||
run: tox -e integration | ||
- run: uvx -p ${{ matrix.python }} tox -e integration | ||
|
||
integration-quarantine: | ||
name: Quarantined Integration Tests | ||
|
@@ -151,16 +134,13 @@ jobs: | |
- "3.4/stable" | ||
- "3.5/stable" | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Setup operator environment | ||
uses: charmed-kubernetes/actions-operator@main | ||
- uses: astral-sh/[email protected] | ||
- uses: charmed-kubernetes/actions-operator@main | ||
with: | ||
provider: lxd | ||
juju-channel: ${{ matrix.juju }} | ||
- name: Run integration | ||
run: tox -e integration-quarantine | ||
- run: uvx -p ${{ matrix.python }} tox -e integration-quarantine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters