Skip to content

Fix #458

Fix #458 #47

Workflow file for this run

name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: Python${{ matrix.python-version }}/Django${{ matrix.django-version }}
strategy:
matrix:
python-version: ["3.8", "3.10"]
django-version: ["3.2", "4.0", "4.1", "4.2"]
# exclude:
# - python-version: 3.7
# django-version: 4.0
# - python-version: 3.7
# django-version: 4.1
# - python-version: 3.8
# django-version: 4.2
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytz
pip install "Django==${{ matrix.django-version }}.*"
- name: Run Test
run: |
`which django-admin` test post_office --settings=post_office.test_settings --pythonpath=.