Skip to content

Workflow file for this run

# This is a template `pr.yaml` file for ops charms
# This file is managed by bootstack-charms-spec and should not be modified
# within individual charm repos. https://launchpad.net/bootstack-charms-spec
name: PR workflow running lint checkers, unit and functional tests
on:
workflow_call:
workflow_dispatch:
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@v3
needs: lint-unit
strategy:
fail-fast: false
with:
command: "make functional"
juju-channel: "3.1/stable"
nested-containers: false
provider: "microstack"
python-version: "3.10"
timeout-minutes: 120
tox-version: "<4"
runs-on: "['self-hosted', 'runner-storage-connector']"
action-operator: false
external-controller: true
juju-controller: soleng-ci-ctrl
zaza-yaml: "LS0tCm1vZGVsX3NldHRpbmdzOgogIGltYWdlLXN0cmVhbTogcmVsZWFzZWQKcmVnaW9uOiBwcm9kc3RhY2s2CmNsb3VkOiBidWlsZGVyLWNsb3VkCmNyZWRlbnRpYWw6IGJ1aWxkZXItY2xvdWQtY3JlZAo="
secrets:
juju-controllers-yaml: ${{ secrets.JUJU_CONTROLLERS_YAML }}
juju-accounts-yaml: ${{ secrets.JUJU_ACCOUNTS_YAML }}
openstack-auth-env: ${{ secrets.OPENSTACK_AUTH_ENV }}