-
Notifications
You must be signed in to change notification settings - Fork 13
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
166 additions
and
40 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,37 @@ | ||
name: Coverage | ||
|
||
# This workflow generates a coverage report (how much of the codebase is covered by the | ||
# unit tests) and posts headline metrics to the PR thread. | ||
|
||
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 UrbanSim Templates | ||
run: | | ||
pip install . | ||
pip install -r requirements-extras.txt | ||
pip install -r requirements-dev.txt | ||
- name: Generate coverage report | ||
run: | | ||
cd tests | ||
coverage run --source urbansim_templates --module pytest --verbose | ||
coverage report --show-missing | ||
echo "coverage=$(coverage report | grep '^TOTAL' | grep -oE '[^ ]+$')" >> $GITHUB_ENV | ||
- name: Post comment on PR | ||
uses: unsplash/comment-on-pr@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
msg: "Test coverage is ${{ env.coverage }}" | ||
check_for_duplicate_msg: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Cross-compatibility | ||
|
||
# This workflow runs the UrbanSim Templates unit tests across a comprehensive range of | ||
# Python versions and operating systems. | ||
|
||
on: | ||
# push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-pip: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.6, 3.7, 3.8] # no pip pytables for py39-mac or py39-win | ||
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 UrbanSim Templates | ||
run: | | ||
pip install . | ||
pip install -r requirements-extras.txt | ||
pip install -r requirements-dev.txt | ||
- name: Run tests | ||
run: | | ||
cd tests | ||
pytest -s |
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,49 @@ | ||
name: Installation | ||
|
||
# This workflow installs UrbanSim Templates 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 UrbanSim Templates. | ||
|
||
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, macos-latest, windows-latest] | ||
python-version: [3.6, 3.7, 3.8] # no pip pytables for py39-mac or py39-win | ||
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 UrbanSim Templates | ||
run: | | ||
pip install urbansim_templates | ||
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 UrbanSim Templates | ||
run: | | ||
conda install urbansim_templates --channel conda-forge |
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,29 @@ | ||
name: Unit tests | ||
|
||
# This workflow runs the UrbanSim Templates 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 UrbanSim Templates | ||
run: | | ||
pip install . | ||
pip install -r requirements-extras.txt | ||
pip install -r requirements-dev.txt | ||
- name: Run tests | ||
run: | | ||
cd tests | ||
pytest -s |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
setup( | ||
name='urbansim_templates', | ||
version='0.1.3', | ||
version='0.1.4', | ||
description='UrbanSim extension for managing model steps', | ||
author='UrbanSim Inc.', | ||
author_email='[email protected]', | ||
|
@@ -17,6 +17,8 @@ | |
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'License :: OSI Approved :: BSD License' | ||
], | ||
packages=find_packages(exclude=['*.tests']), | ||
|
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 +1 @@ | ||
Run tests from this folder using `pytest *.py -s`. | ||
Run tests from this folder using `pytest -s`. |
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 +1 @@ | ||
version = __version__ = '0.1.3' | ||
version = __version__ = '0.1.4' |
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