Skip to content

Commit

Permalink
Add action to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterKale committed Dec 4, 2024
1 parent 0e5d64d commit 9e48eb6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Unit Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pipenv
pipenv install --deploy --dev
- name: Test with unittest
run: |
python _app/manage.py test homepage.tests
- name: Run mypy
run: |
python -m mypy _app/homepage

0 comments on commit 9e48eb6

Please sign in to comment.