Skip to content

Commit

Permalink
github: add unit-tests job
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
  • Loading branch information
simondeziel committed Oct 2, 2024
1 parent dda2a64 commit c1acc10
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,24 @@ jobs:
. ./venv/bin/activate
tox -e check
unit-tests:
name: Unit tests
runs-on: ubuntu-24.04
steps:
- name: Repository checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
python3 -m venv venv
. ./venv/bin/activate
./venv/bin/pip install --require-virtualenv --upgrade pip tox
- name: Run unit tests
run: |
. ./venv/bin/activate
tox -e unit
tests:
name: Tests
strategy:
Expand Down

0 comments on commit c1acc10

Please sign in to comment.