-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pyup-update-sphinx-3.2.1-to-3.3.0
- Loading branch information
Showing
8 changed files
with
89 additions
and
43 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,59 @@ | ||
name: Django CI | ||
|
||
on: | ||
[pull_request, pull_request_target] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup PostgreSQL with Postgis | ||
uses: huaxk/postgis-action@v1.0.0 | ||
with: | ||
postgresql version: latest | ||
postgresql db: osmcha | ||
postgresql user: ${{ secrets.POSTGRES_USER }} | ||
postgresql password: ${{ secrets.POSTGRES_PASSWORD }} | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get install -y binutils libproj-dev python3-gdal libgeos-dev libyaml-dev | ||
python -m pip install --upgrade pip | ||
pip install --upgrade coveralls | ||
pip install -r requirements/test.txt | ||
- name: Run Tests | ||
run: | | ||
coverage run manage.py test --settings=config.settings.tests | ||
env: | ||
OAUTH_OSM_KEY: ${{ secrets.OAUTH_OSM_KEY }} | ||
OAUTH_OSM_SECRET: ${{ secrets.OAUTH_OSM_SECRET }} | ||
POSTGRES_USER: ${{ secrets.POSTGRES_USER }} | ||
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} | ||
- name: Upload Coverage | ||
run: coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_FLAG_NAME: ${{ matrix.test-name }} | ||
COVERALLS_PARALLEL: true | ||
|
||
coveralls: | ||
name: Finish Coveralls | ||
needs: build | ||
runs-on: ubuntu-latest | ||
container: python:3-slim | ||
steps: | ||
- name: Finished | ||
run: | | ||
pip install --upgrade coveralls | ||
coveralls --finish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
osmchadjango/changeset/migrations/0053_auto_20201105_1229.py
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,18 @@ | ||
# Generated by Django 2.2.13 on 2020-11-05 12:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('changeset', '0052_changeset_comments_count'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='changeset', | ||
name='comments_count', | ||
field=models.IntegerField(db_index=True, default=0, null=True), | ||
), | ||
] |
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
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
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,6 @@ | ||
# Test dependencies go here. | ||
-r base.txt | ||
flake8==3.8.4 | ||
coverage==5.3 | ||
django-test-plus==1.4.0 | ||
factory-boy==3.1.0 |