Charmed-Kubernetes/kubeapi-load-balancer/.github/workflows/main.yml

45 lines
1.4 KiB
YAML

name: Test Suite
on: [pull_request]
jobs:
call-inclusive-naming-check:
name: Inclusive naming
uses: canonical-web-and-design/Inclusive-naming/.github/workflows/woke.yaml@main
with:
fail-on-error: "true"
validate-wheelhouse:
name: Validate Wheelhouse
uses: charmed-kubernetes/workflows/.github/workflows/validate-wheelhouse.yaml@main
lint-unit:
name: Lint Unit
uses: charmed-kubernetes/workflows/.github/workflows/lint-unit.yaml@main
integration-test:
name: Integration test with VMWare
runs-on: self-hosted
timeout-minutes: 360
needs:
- call-inclusive-naming-check
- validate-wheelhouse
- lint-unit
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: vsphere
credentials-yaml: ${{ secrets.CREDENTIALS_YAML }}
clouds-yaml: ${{ secrets.CLOUDS_YAML }}
juju-channel: 2.9/stable
bootstrap-constraints: "arch=amd64 cores=2 mem=4G"
bootstrap-options: "${{ secrets.FOCAL_BOOTSTRAP_OPTIONS }} --model-default datastore=vsanDatastore --model-default primary-network=VLAN_2764"
- name: Run test
run: tox -e integration -- --basetemp=/home/ubuntu/pytest