Skip to content

Commit

Permalink
DPE-781 Run integration tests for passed lint/unit tests only
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
taurus-forever committed Oct 10, 2022
1 parent ce334aa commit 8a23e2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a23e2c

Please sign in to comment.