From e4c6c8d8cf379b22333304490429ded653fea522 Mon Sep 17 00:00:00 2001 From: Patrick Peters Date: Sun, 12 Dec 2021 23:47:47 -0600 Subject: [PATCH] update github actions to include running tests --- .github/workflows/main.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f90f27c2..5ac39547 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,25 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" + test: + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.7, 3.8, 3.9] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r ./project/requirements.txt + - name: Run Tests + run: | + python ./project/manage.py test deploy: # The type of runner that the job will run on runs-on: ubuntu-latest