👷 moving to github ci

thanks @jefftriplett for the example -  https://github.com/jefftriplett/python-github-actions-matrix-demo
This commit is contained in:
Jacob Kaplan-Moss 2019-12-25 10:29:27 -05:00
parent 332f819b7a
commit 68b522ea4a
2 changed files with 36 additions and 0 deletions

35
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
django-version: [1.11, 2.0, 2.1, 2.2, 3.0]
exclude:
# Python 2.7 is only compatible with Django 1.11
- python-version: 2.7
django-version: 2.0
- python-version: 2.7
django-version: 2.1
- python-version: 2.7
django-version: 2.2
- python-version: 2.7
django-version: 3.0
# Python 3.5 is compatible with Django 1.11 to 2.2 but not 3.0
- python-version: 3.5
django-version: 3.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: Run Tests
run: |
echo "${{ matrix.python-version }} -> ${{ matrix.django-version }}"
pip install -U pip
pip install "Django~=${{ matrix.django-version }}.0" .
python test_dj_database_url.py

1
.gitignore vendored
View file

@ -53,3 +53,4 @@ docs/_build/
# Virtualenv # Virtualenv
env/ env/
.vscode/