Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests #110

Merged
merged 5 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,18 @@ jobs:
- name: Run linters
run: tox run -e lint

# TODO: re-enable after adding unit tests
# unit-test:
# name: Unit tests
# runs-on: ubuntu-latest
# timeout-minutes: 5
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Install tox
# # TODO: Consider replacing with custom image on self-hosted runner OR pinning version
# run: python3 -m pip install tox
# - name: Run tests
# run: tox run -e unit
unit-test:
name: Unit tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install tox
# TODO: Consider replacing with custom image on self-hosted runner OR pinning version
run: python3 -m pip install tox
- name: Run tests
run: tox run -e unit

build:
name: Build charms
Expand All @@ -56,8 +55,7 @@ jobs:
name: ${{ matrix.tox-environments }}
needs:
- lint
# TODO: re-enable after adding unit tests
#- unit-test
- unit-test
- build
runs-on: ubuntu-latest
timeout-minutes: 120
Expand Down
Loading