Skip to content

Commit

Permalink
Merge pull request #66 from jneight/migrate_to_github_actions
Browse files Browse the repository at this point in the history
migrate to github actions
  • Loading branch information
jneight authored May 12, 2022
2 parents b78919a + d301bbf commit f98c4db
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 54 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
env:
POSTGRES_USER: postgres
PGPASSWORD: postgres
runs-on: '${{ matrix.os }}'
strategy:
matrix:
include:
- os: ubuntu-latest
python-version: '3.6'
django-version: '3.2.13'
- os: ubuntu-latest
python-version: '3.7'
django-version: '3.2.13'
- os: ubuntu-latest
python-version: '3.8'
django-version: '3.2.13'
- os: ubuntu-latest
python-version: '3.9'
django-version: '3.2.13'
- os: ubuntu-latest
python-version: '3.10'
django-version: '3.2.13'
- os: ubuntu-latest
python-version: 'pypy3'
django-version: '3.2.13'
- os: ubuntu-latest
python-version: '3.9'
django-version: '4.0.4'
- os: ubuntu-latest
python-version: '3.10'
django-version: '4.0.4'
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v2
with:
python-version: '${{ matrix.python-version }}'
- uses: actions/checkout@v2
- run: pip install django==${{ matrix.django-version}}
- run: pip install psycopg2
- run: pip install gevent
- run: python setup.py -q install
- run: python runtests.py
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
'PASSWORD': 'postgres',
'ATOMIC_REQUESTS': False,
'CONN_MAX_AGE': 0,
'HOST': 'localhost',
}
},
INSTALLED_APPS=(
Expand Down

0 comments on commit f98c4db

Please sign in to comment.