Skip to content

Drop bootstakc-actions #84

Drop bootstakc-actions

Drop bootstakc-actions #84

Workflow file for this run

name: Check workflow running linter, unit and functional tests
on:
workflow_dispatch:
workflow_call:
pull_request:
types: [opened, synchronize, reopened]
branches: [master, main]
paths-ignore:
- "**.md"
- "**.rst"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint-unit:
name: Lint checkers and Unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{ marix.python-version }}

Check failure on line 29 in .github/workflows/check.yaml

View workflow run for this annotation

GitHub Actions / Check workflow running linter, unit and functional tests

Invalid workflow file

The workflow is not valid. .github/workflows/check.yaml (Line: 29, Col: 13): Unrecognized named-value: 'marix'. Located at position 1 within expression: marix.python-version .github/workflows/check.yaml (Line: 32, Col: 25): Unrecognized named-value: 'marix'. Located at position 1 within expression: marix.python-version
uses: actions/setup-python@v5
with:
python-version: ${{ marix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install "tox${{ inputs.tox-version }}"
- name: Run lint checkers
working-directory: ./src
run: tox -e lint
- name: Run unit tests
working-directory: ./src
run: tox -e unit
func:
name: Functional tests
runs-on: ubuntu-latest
needs: lint-unit
strategy:
fail-fast: false
matrix:
juju-channel: ["3.4/stable"]
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install "tox${{ inputs.tox-version }}"
- name: Setup Juju ${{ inputs.juju-channel }} environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: "lxd"
juju-channel: ${{ matrix.juju-channel }}
- name: Remove tox install by actions-operator
run: sudo apt remove tox -y
- name: Show juju information
run: |
juju version
juju controllers | grep Version -A 1 | awk '{print $9}'
- name: Run tests with `make functional`
run: "TEST_JUJU3=1 make functional" # using TEST_JUJU3 due https://github.com/openstack-charmers/zaza/commit/af7eea953dd5d74d3d074fe67b5765dca3911ca6