Skip to content

Commit

Permalink
Add github action for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Oct 5, 2024
1 parent 72b72b3 commit 3421ad4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Unit Tests

on: [push]

jobs:
run-unit-test:
name: Run Unit Tests
runs-on: ubuntu-latest
container:
image: ghcr.io/truenas/middleware:master

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install dev-tools
run: |
install-dev-tools
- name: Install dependencies
run: |
apt install python3-pytest-mock -y
- name: Run Tests
run: |
PYTHONPATH=$(pwd) pytest apps_validation/pytest/unit/
PYTHONPATH=$(pwd) pytest catalog_reader/pytest/unit/
PYTHONPATH=$(pwd) pytest apps_schema/pytest/unit/

0 comments on commit 3421ad4

Please sign in to comment.