Skip to content

Commit

Permalink
Merge pull request #42 from barrettj12/merge-3.1-3.2-20231017
Browse files Browse the repository at this point in the history
Merge 3.1 into 3.2
  • Loading branch information
barrettj12 authored Oct 17, 2023
2 parents af6c621 + 42fc9be commit 8dc3286
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 8dc3286

Please sign in to comment.