Skip to content

Commit

Permalink
Adopt juju 3.1 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
dashmage authored Oct 11, 2023
1 parent 3bd88aa commit 49f3a21
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 27 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check workflow running linter, unit and functional tests

on:
workflow_call:
pull_request:
types: [opened, synchronize, reopened]
branches: [master, main]
paths-ignore:
- "**.md"
- "**.rst"

jobs:
lint-unit:
uses: canonical/bootstack-actions/.github/workflows/lint-unit.yaml@v2
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]
with:
python-version: ${{ matrix.python-version }}
tox-version: "<4"

func:
uses: canonical/bootstack-actions/.github/workflows/func.yaml@v2
needs: lint-unit
with:
command: make functional
juju-channel: "3.1/stable"
nested-containers: true
python-version: "3.10"
timeout-minutes: 60
tox-version: "<4"
24 changes: 0 additions & 24 deletions .github/workflows/pr.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
name: SonarCloud
on:
workflow_run:
workflows:
- PR workflow running lint checkers, unit and functional tests
workflows:
- Check workflow running linter, unit and functional tests
types: [completed]

jobs:
sonar:
uses: canonical/bootstack-actions/.github/workflows/sonar.yaml@main
secrets: inherit
with:
workflow-name: PR workflow running lint checkers, unit and functional tests
workflow-name: Check workflow running linter, unit and functional tests

0 comments on commit 49f3a21

Please sign in to comment.