-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
105 additions
and
28 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,52 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# TODO: Running the full matrix seems to make the US Census Geocoder | ||
# more likely to return errors; running a single one is more likely | ||
# to succeed. This is disabled temporarily. Tracking issue: | ||
# https://github.com/azavea/python-omgeo/issues/66 | ||
# python-version: ["3.6", "3.7", "3.8"] | ||
python-version: ["3.8"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ hashFiles('setup.cfg') }}-${{ hashFiles('tox.ini') }} | ||
restore-keys: pip- | ||
|
||
- name: Install packages | ||
run: pip install flake8 | ||
|
||
- name: Lint | ||
run: flake8 | ||
|
||
- name: Run tests | ||
run: python setup.py test | ||
env: | ||
BING_MAPS_API_KEY: ${{ secrets.BING_MAPS_API_KEY }} | ||
ESRI_CLIENT_ID: ${{ secrets.ESRI_CLIENT_ID }} | ||
ESRI_CLIENT_SECRET: ${{ secrets.ESRI_CLIENT_SECRET }} | ||
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | ||
MAPQUEST_API_KEY: ${{ secrets.MAPQUEST_API_KEY }} | ||
PELIAS_API_KEY: ${{ secrets.PELIAS_API_KEY }} | ||
|
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,34 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout commit and fetch tag history | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install release dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish package | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_AZAVEA_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_AZAVEA_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
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
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