mirror of
https://github.com/jazzband/dj-database-url.git
synced 2026-03-16 22:20:24 +00:00
31 lines
839 B
YAML
31 lines
839 B
YAML
name: test
|
|
on: [push]
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
|
django-version: [3.2, 4.0]
|
|
exclude:
|
|
# Python 3.6 is not compatible with 4.0
|
|
- python-version: 3.6
|
|
django-version: 4.0
|
|
fail-fast: false
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -U pip
|
|
pip install "Django~=${{ matrix.django-version }}.0" .
|
|
|
|
- name: Run Tests
|
|
run: |
|
|
echo "$(python --version) / Django $(django-admin --version)"
|
|
python -m unittest discover
|