Skip to content

Commit

Permalink
Merge pull request #41 from barrettj12/ci-unit-tests
Browse files Browse the repository at this point in the history
run unit tests in CI
  • Loading branch information
barrettj12 authored Oct 17, 2023
2 parents 4e2dee9 + 8635243 commit 020c2f5
Showing 1 changed file with 21 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

0 comments on commit 020c2f5

Please sign in to comment.