Skip to content

Commit

Permalink
Run CI on self-hosted runners (#39)
Browse files Browse the repository at this point in the history
* self-hosted runners

* self-hosted runners

* self-hosted runners
  • Loading branch information
Mehdi-Bendriss authored Jul 30, 2024
1 parent 60b6b24 commit fa4b6aa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: canonical/data-platform-workflows/.github/workflows/build_rock.yaml@v16

integration:
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, X64, jammy, large]
timeout-minutes: 120
needs: build
strategy:
Expand All @@ -31,23 +31,29 @@ jobs:
provider: microk8s
channel: "1.29-strict/stable"
bootstrap-constraints: "cores=2 mem=2G"
juju-channel: 3.1/stable
juju-channel: 3.4/stable
# This is needed until
# https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 3.1.7"
bootstrap-options: "--agent-version 3.4.4"
- name: Install rockcraft
run: |
sudo snap install rockcraft --classic --revision 1206
sudo snap refresh rockcraft --hold=forever
sudo snap install rockcraft --classic
- name: Download rock package(s)
uses: actions/download-artifact@v4
with:
pattern: ${{ needs.build.outputs.artifact-prefix }}-*
merge-multiple: true
- name: Install tox & poetry
run: |
sudo apt-get update
sudo apt-get install python3-pip python3-venv -y --no-install-recommends
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install tox
pipx install poetry
pipx install charmcraftcache
pipx inject poetry poetry-plugin-export
poetry config warnings.export false
- name: Integration Tests
run: |
sg snap_microk8s -c "tox -e ${{ matrix.env }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, X64, jammy, large]
timeout-minutes: 5
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
publish:
needs: build
name: publish
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, X64, jammy, large]
timeout-minutes: 15
steps:
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
uses: ./.github/workflows/build.yaml
publish:
needs: build
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, X64, jammy, large]
timeout-minutes: 5
permissions:
packages: write
Expand Down

0 comments on commit fa4b6aa

Please sign in to comment.