Skip to content

Commit

Permalink
fix int tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Jul 15, 2024
1 parent cb9e801 commit b3f6088
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build Charmed MongoDB rock

on:
workflow_call:
pull_request:

jobs:
build:
Expand Down
31 changes: 17 additions & 14 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ on:

jobs:
build:
uses: ./.github/workflows/build.yaml
name: Build rock
uses: canonical/data-platform-workflows/.github/workflows/build_rock.yaml@v16

integration:
runs-on: ubuntu-latest
timeout-minutes: 120
Expand All @@ -27,25 +29,29 @@ jobs:
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
channel: "1.27-strict/stable"
channel: "1.29-strict/stable"
bootstrap-constraints: "cores=2 mem=2G"
juju-channel: 3.1/stable
# This is needed until
# https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 3.1.6"
- name: Pin charmcraft version
run: |
sudo snap refresh charmcraft --classic --revision 1349
sudo snap refresh charmcraft --hold=forever
bootstrap-options: "--agent-version 3.1.7"
- name: Install rockcraft
run: |
sudo snap install rockcraft --classic --revision 1206
sudo snap refresh rockcraft --hold=forever
- uses: actions/download-artifact@v3
- name: Download rock package(s)
uses: actions/download-artifact@v4
with:
name: mongodb-rock
- name: Install tox
run: python3 -m pip install tox
pattern: ${{ needs.build.outputs.artifact-prefix }}-*
merge-multiple: true
- name: Install tox & poetry
run: |
pipx install tox
pipx install poetry
- name: Integration Tests
run: |
sg snap_microk8s -c "tox -e ${{ matrix.env }}"
- name: Free disk space
run: |
Expand All @@ -59,6 +65,3 @@ jobs:
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Free disk space after cleanup"
df -T
- name: Integration Tests
run: sg snap_microk8s -c "tox -e ${{ matrix.env }}"

0 comments on commit b3f6088

Please sign in to comment.