Skip to content

Commit

Permalink
Move integration tests to juju 2.9, 3.1, and 3.3 (#128)
Browse files Browse the repository at this point in the history
* Move integration tests to juju 2.9, 3.1, and 3.3

* Archive the built charms

* Rename artifacts

* reactive charms are getting harder to build as deps keep moving away from the tools
  • Loading branch information
addyess authored Feb 27, 2024
1 parent 49d8c44 commit 40be682
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
needs:
- call-inclusive-naming-check

integration-test-3-0:
integration-test-2-9:
name: Integration test with juju
runs-on: ubuntu-22.04
timeout-minutes: 40
Expand All @@ -37,6 +37,7 @@ jobs:
- name: Setup operator test environment
uses: charmed-kubernetes/actions-operator@main
with:
charm-channel: 3.x/stable
juju-channel: ${{ matrix.juju }}/stable

- name: Run integration tests
Expand All @@ -47,12 +48,14 @@ jobs:
run: |
mkdir -p tmp/
mv $HOME/.local/state/charmcraft/log/* tmp/ | true
shopt -s globstar
cp ${GITHUB_WORKSPACE}/.tox/integration*/tmp/*.charm tmp/ | true
- name: Upload debug artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-run-artifacts
name: test-run-artifacts-${{ matrix.juju }}
path: tmp

integration-test:
Expand All @@ -61,10 +64,10 @@ jobs:
timeout-minutes: 40
strategy:
matrix:
juju: ['3.1', '3.2']
juju: ['3.1', '3.3']
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
Expand All @@ -74,6 +77,7 @@ jobs:
- name: Setup operator test environment
uses: charmed-kubernetes/actions-operator@main
with:
charm-channel: 3.x/stable
juju-channel: ${{ matrix.juju }}/stable

- name: Run integration tests
Expand All @@ -84,10 +88,12 @@ jobs:
run: |
mkdir -p tmp/
mv $HOME/.local/state/charmcraft/log/* tmp/ | true
shopt -s globstar
cp ${GITHUB_WORKSPACE}/.tox/integration*/tmp/**/*.charm tmp/ | true
- name: Upload debug artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-run-artifacts
name: test-run-artifacts-${{ matrix.juju }}
path: tmp
1 change: 1 addition & 0 deletions tests/data/charms/reactive-framework/wheelhouse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sniffio<1.3.1 # 1.3.1 requires setuptools>=64

0 comments on commit 40be682

Please sign in to comment.