From 143bdf86f1492db564ce3e3cca2051b1d84cff1d Mon Sep 17 00:00:00 2001 From: Ashley James Date: Fri, 6 Oct 2023 18:47:42 +0530 Subject: [PATCH] Adopt juju 3.1 --- .github/workflows/check.yaml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/pr.yaml | 24 ------------------------ 2 files changed, 32 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/check.yaml delete mode 100644 .github/workflows/pr.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..2df9290 --- /dev/null +++ b/.github/workflows/check.yaml @@ -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: 120 + tox-version: "<4" diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml deleted file mode 100644 index bffeacb..0000000 --- a/.github/workflows/pr.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# This is a template `pr.yaml` file for snaps -# This file is managed by bootstack-charms-spec and should not be modified -# within individual snap repos. https://launchpad.net/bootstack-charms-spec - -name: PR workflow running lint checkers, unit and functional tests - -on: - pull_request: - types: [ opened, synchronize, reopened ] - branches: [ master, main ] - paths-ignore: - - '**.md' - - '**.rst' - -jobs: - pr: - uses: canonical/bootstack-actions/.github/workflows/pull-request.yaml@main - secrets: inherit - with: - python-version-unit: "['3.8', '3.10']" - python-version-func: "3.10" - tox-version: "<4" - snapcraft: true - commands: "['make functional']"