Skip to content

Commit

Permalink
Merge 3.2 into 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettj12 committed Oct 17, 2023
2 parents af8e6fb + 8dc3286 commit 115dbb3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,29 @@ on:

jobs:

unit-tests:
name: Unit tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4

- name: Install dependencies for testing
run: |
pip install -r requirements-dev.txt
- name: Run tests
run: |
./run_tests
build:
name: Build charms
needs: unit-tests
uses: canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v4
with:
artifact-name: charm-packed
Expand Down
1 change: 1 addition & 0 deletions tests/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def test_website_relation_joined(self, open, ingress_address):
harness = Harness(JujuControllerCharm)
self.addCleanup(harness.cleanup)
harness.begin()
harness.set_leader()
relation_id = harness.add_relation('website', 'haproxy')
harness.add_relation_unit(relation_id, 'haproxy/0')

Expand Down

0 comments on commit 115dbb3

Please sign in to comment.