Skip to content

Commit

Permalink
v1.6 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
smmaurer authored Mar 30, 2021
1 parent 0a41626 commit 8bf0e2a
Show file tree
Hide file tree
Showing 21 changed files with 498 additions and 531 deletions.
4 changes: 0 additions & 4 deletions .coveragerc

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/code-style.yml
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.8
- name: Check code style
run: |
pip install pycodestyle
pycodestyle orca --max-line-length 100
36 changes: 36 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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 Orca
run: |
pip install .
pip install flask pygments # for server component tests
- name: Generate coverage report
run: |
pip install pytest coverage
coverage run --source orca --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
31 changes: 31 additions & 0 deletions .github/workflows/cross-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Cross-compatibility

# This workflow runs the unit tests across a range of Python versions and operating
# systems.

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] # add 3.9 when PyTables is available
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 Orca
run: |
pip install .
pip install flask pygments # for server component tests
- name: Run unit tests
run: |
pip install pytest
pytest -s
49 changes: 49 additions & 0 deletions .github/workflows/installation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Installation

# This workflow tests installation 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 cause problems.

on:
# push:
# pull_request:
workflow_dispatch:
schedule:
- cron: '0 3 * * 1' # every Monday at 3am UTC (Sunday evening Calif time)

jobs:
pip:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6, 3.7, 3.8] # add 3.9 when PyTables is available
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 Orca
run: |
pip install orca
conda:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0} # needed for conda persistence
strategy:
matrix:
os: [ubuntu-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 Orca
run: |
conda install orca --channel conda-forge
28 changes: 28 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Unit tests

# This workflow runs the 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 Orca
run: |
pip install .
pip install flask pygments # for server component tests
- name: Run unit tests
run: |
pip install pytest
pytest -s
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v1.6
====

* New functionality to clear cache and update cache scope: https://udst.github.io/orca/core.html#caching
* Server module deprecated

v1.5.4
======

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019, UrbanSim Inc. All rights reserved.
Copyright (c) 2021, UrbanSim Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.. image:: https://coveralls.io/repos/UDST/orca/badge.svg?branch=master
:target: https://coveralls.io/r/UDST/orca?branch=master
.. image:: https://img.shields.io/badge/coverage-97%25-green
:alt: Coverage

Orca
Expand Down
58 changes: 0 additions & 58 deletions bin/build_docs.sh

This file was deleted.

Loading

0 comments on commit 8bf0e2a

Please sign in to comment.