Fix github action errors #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [pull_request, push] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: python3 -m pip install tox | |
- name: Run linters | |
run: tox -e lint | |
integration-test-microk8s: | |
name: Integration tests (microk8s) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup operator environment | |
uses: charmed-kubernetes/actions-operator@1.1.0 | |
with: | |
provider: microk8s | |
- name: Run integration tests | |
# set a predictable model name so it can be consumed by charm-logdump-action | |
run: tox -e integration -- --model cloudcasa-system | |
- name: Dump logs | |
uses: canonical/charm-logdump-action@main | |
if: failure() | |
with: | |
app: cloudcasa | |
model: testing |