Skip to content

Commit

Permalink
update poetry, workflows, and more (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri authored Jan 9, 2025
1 parent c684f30 commit 624b147
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:
lint:
name: Lint
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v21.0.0
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v24.0.6

lib-check:
name: Check libraries
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

build:
name: Build charm | ${{ matrix.path }}
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v21.0.0
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v24.0.6
strategy:
matrix:
path:
Expand All @@ -81,7 +81,7 @@ jobs:
- lint
- unit-test
- build
uses: canonical/data-platform-workflows/.github/workflows/integration_test_charm.yaml@v21.0.0
uses: canonical/data-platform-workflows/.github/workflows/integration_test_charm.yaml@v24.0.6
with:
artifact-prefix: packed-charm-cache-false # TODO revert to "packed-charm-cache-true" when cache re-enabled
cloud: microk8s
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

build:
name: Build charm
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v21.0.0
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v24.0.6
with:
artifact-prefix: temp-release-packed-charm # TODO: remove after caching re-enabled on PR

Expand All @@ -23,7 +23,7 @@ jobs:
needs:
- ci-tests
- build
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v21.0.0
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v24.0.6
with:
channel: 6/edge
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
Expand Down
8 changes: 8 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ parts:
charm-strict-dependencies: true
override-build: |
rustup default stable
# Convert subset of poetry.lock to requirements.txt
curl -sSL https://install.python-poetry.org | python3 -
/root/.local/bin/poetry self add poetry-plugin-export
/root/.local/bin/poetry export --only main,charm-libs --output requirements.txt
craftctl default
build-snaps:
- rustup
Expand All @@ -33,4 +37,8 @@ parts:
- workload_version
override-build: |
rustup default stable
# Convert subset of poetry.lock to requirements.txt
curl -sSL https://install.python-poetry.org | python3 -
/root/.local/bin/poetry self add poetry-plugin-export
/root/.local/bin/poetry export --only main,charm-libs --output requirements.txt
craftctl default
Loading

0 comments on commit 624b147

Please sign in to comment.