Skip to content

Commit b22551f

Browse files
Revert "Temporarily disable tests to unblock release"
This reverts commit 0c6eba1.
1 parent 0c6eba1 commit b22551f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,41 @@ on:
2525
value: ${{ jobs.build.outputs.artifact-prefix }}
2626

2727
jobs:
28+
lint:
29+
name: Lint
30+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
31+
32+
unit-test:
33+
name: Unit test charm
34+
runs-on: ubuntu-latest
35+
timeout-minutes: 5
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
- name: Install tox & poetry
40+
run: |
41+
pipx install tox
42+
pipx install poetry
43+
- name: Run tests
44+
run: tox run -e unit
45+
- name: Upload Coverage to Codecov
46+
uses: codecov/codecov-action@v5
47+
env:
48+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
49+
2850
build:
2951
name: Build charm
3052
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
53+
54+
integration-test:
55+
name: Integration test charm
56+
needs:
57+
- lint
58+
- unit-test
59+
- build
60+
uses: ./.github/workflows/integration_test.yaml
61+
with:
62+
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
63+
secrets: inherit
64+
permissions:
65+
contents: write # Needed for Allure Report

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- 'docs/**'
1212
- .github/renovate.json5
1313
- pyproject.toml
14+
- '.github/workflows/ci.yaml'
1415
- '.github/workflows/lib-check.yaml'
1516
- '.github/workflows/sync_docs.yaml'
1617

0 commit comments

Comments
 (0)