-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from dabapps/github-actions
Add GitHub actions config
- Loading branch information
Showing
5 changed files
with
50 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: CI | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-18.04 | ||
|
||
strategy: | ||
matrix: | ||
python: [3.6, 3.7, 3.8] | ||
django: [2.2] | ||
database_url: | ||
- postgres://runner:password@localhost/project | ||
- mysql://root:[email protected]/project | ||
|
||
services: | ||
postgres: | ||
image: postgres:11 | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_DB: project | ||
POSTGRES_USER: runner | ||
POSTGRES_PASSWORD: password | ||
|
||
env: | ||
DATABASE_URL: ${{ matrix.database_url }} | ||
|
||
steps: | ||
- name: Start MySQL | ||
run: sudo systemctl start mysql.service | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install dependencies | ||
run: pip install -r test-requirements.txt | ||
- name: Install Django | ||
run: pip install -U django==${{ matrix.django }} | ||
- name: Run tests | ||
run: python manage.py test | ||
- name: Run black | ||
run: black --check django_dbq |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
django-model-utils==2.3.1 | ||
django-uuidfield==0.5.0 | ||
jsonfield==1.0.3 | ||
Django>=1.8 | ||
Django>=2.2<3.0 | ||
simplesignals==0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ freezegun==0.3.12 | |
mock==3.0.5 | ||
dj-database-url==0.5.0 | ||
psycopg2==2.8.4 | ||
black==19.10b0 |