Skip to content

Commit

Permalink
Create unittest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hyihua committed Nov 19, 2023
1 parent e174261 commit f79a76a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f79a76a

Please sign in to comment.