Switch from Travis CI to GitHub Actions
parent
aaaa92ba37
commit
3ae816d64d
|
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version:
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
- "3.8"
|
||||
- "3.9"
|
||||
django-version:
|
||||
- "2.2.17" # first version to support Python 3.9
|
||||
- "3.1.3" # first version to support Python 3.9
|
||||
- "3.2.0"
|
||||
|
||||
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 wheel setuptools
|
||||
python -m pip install --upgrade "django~=${{ matrix.django-version}}"
|
||||
- name: Run tests
|
||||
run: python manage.py test
|
||||
working-directory: sample_project
|
||||
24
.travis.yml
24
.travis.yml
|
|
@ -1,24 +0,0 @@
|
|||
arch:
|
||||
- amd64
|
||||
- ppc64le
|
||||
language: python
|
||||
python:
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
- "3.8"
|
||||
- "3.9"
|
||||
env:
|
||||
- DJANGO_VERSION=2.2 SAMPLE_PROJECT=sample_project
|
||||
- DJANGO_VERSION=3.1 SAMPLE_PROJECT=sample_project
|
||||
- DJANGO_VERSION=3.2 SAMPLE_PROJECT=sample_project
|
||||
|
||||
branches:
|
||||
only:
|
||||
- develop
|
||||
|
||||
install:
|
||||
- pip install django==$DJANGO_VERSION
|
||||
|
||||
script:
|
||||
- cd $SAMPLE_PROJECT
|
||||
- python manage.py test
|
||||
Loading…
Reference in New Issue