From 8a23e2c46ad01d156c3c9a92aa1335dcc4393d14 Mon Sep 17 00:00:00 2001 From: Alex Lutay <1928266+taurus-forever@users.noreply.github.com> Date: Mon, 10 Oct 2022 12:56:39 +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 | 7 +++++++ .github/workflows/release.yaml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 89055769..85909a32 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,6 +24,7 @@ jobs: run: python -m pip install tox - name: Run tests run: tox -e unit + security-test: name: Security tests runs-on: ubuntu-latest @@ -33,8 +35,13 @@ jobs: run: python -m pip install tox - name: Run tests run: tox -e security + integration-test: name: Integration tests (microk8s) + needs: + - lint + - unit-test + - security-test runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2dbea4eb..0f4f63fa 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -55,6 +55,11 @@ jobs: integration-test: name: Integration tests + needs: + - lib-check + - lint + - unit-test + - security-test runs-on: ubuntu-latest steps: - name: Checkout