diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml new file mode 100644 index 000000000..e212603e9 --- /dev/null +++ b/.github/workflows/unittest.yml @@ -0,0 +1,33 @@ +name: Unit Test +on: + push: + paths: + - '**/*.py' + - '**/*.js' + - '.github/workflows/unittest.yml' + + pull_request: + paths: + - '**/*.py' + - '**/*.js' + - '.github/workflows/unittest.yml' + +jobs: + Run-Unit-Test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Build Docker Image + run: docker build -t Dockerfile . + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.10 + + - name: Run Tests + run: | + python manage.py test \ No newline at end of file