From f79a76a9c94835f1adba4468944f030ea89b9fba Mon Sep 17 00:00:00 2001 From: hyihua Date: Sat, 18 Nov 2023 22:24:02 -0500 Subject: [PATCH] Create unittest.yml --- .github/workflows/unittest.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/unittest.yml 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