Skip to content

Merge pull request #57 from truenas/apps-ci-unit-tests #4

Merge pull request #57 from truenas/apps-ci-unit-tests

Merge pull request #57 from truenas/apps-ci-unit-tests #4

Workflow file for this run

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/
PYTHONPATH=$(pwd) pytest apps_ci/pytest/unit/