From 8a8d3e637aefb79f7d35cc5890a136e17edc1539 Mon Sep 17 00:00:00 2001 From: Alex Lutay <1928266+taurus-forever@users.noreply.github.com> Date: Mon, 10 Oct 2022 14:10:31 +0200 Subject: [PATCH] DPE-781 Run integration tests for passed lint/unit tests only Avoid a long-running integration test in case of failing gatekeeping tests. It will slightly increase the complete tests scope runtime but will save (a lot?) of electricity/money for Canonical as often new pull requests have some initial typos/issues to be polished. --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d03d0de..f14591e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,6 +13,7 @@ jobs: run: python3 -m pip install tox - name: Run linters run: tox -e lint + unit-test: name: Unit tests runs-on: ubuntu-latest @@ -23,8 +24,12 @@ jobs: run: python -m pip install tox - name: Run tests run: tox -e unit + integration-test-microk8s: name: Integration tests (microk8s) + needs: + - lint + - unit-test runs-on: ubuntu-latest steps: - name: Checkout