Skip to content

Commit

Permalink
Merge pull request #54 from canonical/fix/run_tests_order
Browse files Browse the repository at this point in the history
DPE-781 Run integration tests for passed lint/unit tests only
  • Loading branch information
taurus-forever committed Oct 11, 2022
2 parents a8c087c + e6b92be commit 8e41c51
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 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,8 +24,12 @@ jobs:
run: python -m pip install tox
- name: Run tests
run: tox -e unit

integration-test-general:
name: Integration tests (general)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -40,6 +45,9 @@ jobs:

integration-test-relation:
name: Integration tests (relation)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:

integration-test-general:
name: Integration tests (general)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -56,8 +59,12 @@ jobs:
bootstrap-options: "--agent-version 2.9.29"
- name: Run integration tests
run: tox -e integration

integration-test-relation:
name: Integration tests (relation)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 8e41c51

Please sign in to comment.