Update charmcraft.yaml build tools #1327
Workflow file for this run
This file contains hidden or 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
| # Copyright 2022 Canonical Ltd. | |
| # See LICENSE file for licensing details. | |
| name: Tests | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| schedule: | |
| - cron: '53 0 * * *' # Daily at 00:53 UTC | |
| # Triggered on push to branch "main" by .github/workflows/release.yaml | |
| workflow_call: | |
| outputs: | |
| artifact-prefix: | |
| description: build_charm.yaml `artifact-prefix` output | |
| value: ${{ jobs.build.outputs.artifact-prefix }} | |
| jobs: | |
| lint-workflows: | |
| name: Lint .github/workflows/ | |
| uses: canonical/data-platform-workflows/.github/workflows/lint_workflows.yaml@v49.0.1 | |
| permissions: | |
| contents: read | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Install tox & poetry | |
| run: | | |
| pipx install tox | |
| pipx install poetry | |
| - name: tox run -e lint | |
| run: tox run -e lint | |
| permissions: {} | |
| build: | |
| name: Build charm | |
| uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v49.0.1 | |
| permissions: | |
| actions: read # Needed for GitHub API call to get workflow version | |
| contents: read | |
| integration-test: | |
| name: Integration test charm | |
| needs: | |
| - lint-workflows | |
| - lint | |
| - build | |
| uses: ./.github/workflows/integration_test.yaml | |
| with: | |
| artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} | |
| permissions: {} |