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
13 changed files
with
229 additions
and
63 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,21 @@ | ||
name: Code style | ||
|
||
# This workflow runs code style checks. | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Check code style | ||
run: | | ||
pip install pycodestyle | ||
pycodestyle pandana |
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,33 @@ | ||
name: Coverage | ||
|
||
# This workflow generates a coverage report (how much of the codebase is covered by the | ||
# unit tests) and uploads the information to Coveralls.io for reporting and analysis. | ||
|
||
on: | ||
# push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Pandana | ||
run: | | ||
pip install . | ||
pip install osmnet | ||
- name: Run unit tests | ||
run: | | ||
pip install 'pytest<4.0' 'pytest-cov<2.10' | ||
python setup.py test --pytest-args "--cov pandana --cov-report term-missing" | ||
- name: Upload to Coveralls | ||
run: | | ||
pip install coveralls | ||
coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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: Cross-compatibility | ||
|
||
# This workflow runs the Pandana unit tests across a comprehensive range of Python | ||
# versions and operating systems. | ||
|
||
# TO DO: might be clearer to split this into a set of default-python builds and a set of | ||
# conda-based builds -- see installation.yml for example. Windows needs conda in order to | ||
# install geospatial dependencies. | ||
|
||
on: | ||
# push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.6, 3.7, 3.8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
if: matrix.os != 'windows-latest' | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up Python ${{ matrix.python-version }} (conda - for win) | ||
if: matrix.os == 'windows-latest' | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install OSMnet | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
pip install osmnet | ||
- name: Install OSMnet (conda - for win) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
conda install osmnet --channel conda-forge | ||
- name: Install Pandana from source code | ||
run: | | ||
pip install . | ||
- name: Run demo | ||
run: | | ||
python examples/simple_example.py | ||
- name: Run unit tests (skipped on windows) | ||
if: matrix.os != 'windows-latest' # skipped because not passing at the moment | ||
run: | | ||
pip install 'pytest<4.0' | ||
python setup.py test |
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,58 @@ | ||
name: Installation | ||
|
||
# This workflow installs Pandana from Pip and Conda across a range of Python versions and | ||
# operating systems. You can run this manually after a new release is posted to confirm | ||
# that it installs smoothly. This workflow also runs periodically in the background to | ||
# catch dependency updates that break Pandana. | ||
|
||
on: | ||
# push: | ||
# pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 3 * * 1' # every Monday at 3am UTC (Sunday evening Calif time) | ||
|
||
jobs: | ||
build-pip: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
# Pip installation for Windows is not supported. Pip installation for Mac is | ||
# broken in the GitHub Actions environment with Pandana v0.6 but should be fixed | ||
# in the next Pandana release. | ||
python-version: [3.6, 3.7, 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: Install Pandana | ||
run: | | ||
pip install pandana | ||
- name: Run demo | ||
run: | | ||
python examples/simple_example.py | ||
build-conda: | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} # needed for conda persistence | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Pandana | ||
run: | | ||
conda install pandana --channel conda-forge | ||
- name: Run demo | ||
run: | | ||
python examples/simple_example.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,28 @@ | ||
name: Unit tests | ||
|
||
# This workflow runs the Pandana unit tests in a single generic environment (recent but | ||
# stable Python version on recent but stable Ubuntu). The cross-compatibility.yml | ||
# workflow runs the same tests across multiple platforms. | ||
|
||
on: | ||
push: | ||
# pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Pandana | ||
run: | | ||
pip install . | ||
pip install osmnet | ||
- name: Run unit tests | ||
run: | | ||
pip install 'pytest<4.0' | ||
python setup.py test |
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,25 @@ | ||
name: Windows tests | ||
|
||
# This workflow runs the Pandana unit tests in Windows -- this is a one-off for debugging. | ||
|
||
on: | ||
# push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Pandana | ||
run: | | ||
pip install . | ||
pip install 'pytest<4.0' | ||
conda install osmnet --channel conda-forge | ||
- name: Run unit tests | ||
run: | | ||
python setup.py test |
This file was deleted.
Oops, something went wrong.
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
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