-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Phase 7] Sharrow -- 1 Zone #579
Closed
Closed
Changes from all commits
Commits
Show all changes
243 commits
Select commit
Hold shift + click to select a range
c4edff8
sharrow changes initial dump
jpn-- 37de71c
fix for dot function
jpn-- ad36d4c
fix for sharrow 2.0
jpn-- 9308a7e
require sharrow and xarray
jpn-- 53489e4
include sh configs in example_mtc
jpn-- d3dcb80
thread stopper when invoking activitysim1
jpn-- e389254
sh for arc examples
jpn-- 7770352
sharrow now allows one missing dim
jpn-- a6e21fe
recode TAZ's
jpn-- c6ef5c7
clean up logging
jpn-- 873bb17
comment out traps in ARC model
jpn-- a17a532
pypyr
jpn-- 10d9444
workflow updates
jpn-- 60cdafc
archives in one dir
jpn-- 7e3dffb
demo workflow
jpn-- 341c569
facilitate pypyr as optional
jpn-- 293e30f
remove nested wheres
jpn-- ee5e9b6
tweaks for ARC model
jpn-- 924466e
prog and parser for docs
jpn-- 724b27f
create --link
jpn-- 09834c2
use --link in workflow
jpn-- 52b92a4
norm link paths
jpn-- 6acebc5
exit with error code on failure
jpn-- e1465de
fallback to copy if lacking windows permissions
jpn-- d9c6318
sys exit with failure on uncaught exception
jpn-- a674a37
call correct python
jpn-- a9e4439
don't swallow errors
jpn-- ca397e9
enable vt support
jpn-- bc3b9ed
re-install previously downloaded files
jpn-- bd3124e
archive_base
jpn-- 80346d6
use rich
jpn-- e6bec7e
optional name for skims backing store
jpn-- 5d86dcb
workflow cleanup
jpn-- 6330aa2
small adjustments
jpn-- de39406
toggle sharrow in workflow
jpn-- 14f0d95
decode TAZ on output
jpn-- e36d5d5
integerize decodings
jpn-- 8cee8b1
resume_after in workflow
jpn-- ce2a05e
recode_pipeline_columns
jpn-- af07364
fix script
jpn-- 8acc4c5
fixes for parking location
jpn-- 81aa255
zarr pre-encoding
jpn-- 519e71b
workflow updates
jpn-- ebad8ea
cleanup for --no-rich
jpn-- 1216033
zarr logging
jpn-- a35bf68
compile_watch, standalones
jpn-- 4c0e35d
fix example_runner
jpn-- 5a74764
county workforce flows
jpn-- cd3add0
workflow mods
jpn-- 85c13c4
fix compare in ARC
jpn-- 1185449
run_flags
jpn-- ea54b52
reporting as steps
jpn-- 8d43649
to_csv_safe
jpn-- 31f56f7
data inv in report
jpn-- b051bbb
load 5 tables
jpn-- ed3a529
improve formatting
jpn-- e74674c
distance in report
jpn-- 7563dd8
attach skim data
jpn-- b51cc33
report_step 1
jpn-- d46fd49
more validation viz
jpn-- 4432b4c
tablesets
jpn-- 43f56d2
semcog cleanup 1
jpn-- 515a619
adjustments for semcog model
jpn-- 2d93b61
transform_data
jpn-- 89830a5
cdap to report
jpn-- b9a9ba4
instrument, workstep
jpn-- 462eedf
semcog string eval to preprocessor
jpn-- 0d962b1
no at in preprocessor
jpn-- e309589
temp tour_mode
jpn-- ec106ef
skims not in preproc
jpn-- 854dbbc
sigh
jpn-- bfdfe57
deoptimize for compatibility
jpn-- 8318fc6
prioritize explicit return_names
jpn-- 0fc20fb
clean up
jpn-- 4f88459
cleanup
jpn-- 24f0edb
ordinal_distribution
jpn-- 540d706
Merge commit 'b3d1d61e4a0f88a6230fd389c083d3a995c0ae34' into with-sha…
jpn-- d57299b
start on two-zone
jpn-- 63d30b2
psrc reaches first flow
jpn-- 51cf259
clean up dims
jpn-- 4b36afa
two zone yay?
jpn-- 3d7ca89
work on 2-zone, clean up interface
jpn-- 5d08c6e
version tag from scm
jpn-- dc6a3c3
move modules to reporting
jpn-- 4337914
install env, run as subprocess
jpn-- 998bfb4
reference in env
jpn-- a48d021
skip missing cols in composite_log
jpn-- 3f11b69
mtc_full ref
jpn-- 9bffcd7
fix reference run
jpn-- 7e858e9
relabel tablesets
jpn-- 5db361b
workplace location w data dict
jpn-- f7f23e6
create docs
jpn-- a77deb0
doc cleanup
jpn-- 88d046a
reorg, memory use
jpn-- 9e21b6c
arc with legacy-1.0.4
jpn-- 7ecb7d8
use shell for env install
jpn-- 1e660d5
flag progression on env
jpn-- fbdca0a
pass args as string for shell
jpn-- 911cd7b
log shell command
jpn-- 0681721
make intermediate dirs [ci skip]
jpn-- 1e78b45
fix for windows
jpn-- 7d69a21
fix reporting for 1 run on windows
jpn-- 3e365e3
subproc single thread by default [ci skip]
jpn-- 640ac0e
fix random to old repro
jpn-- 72b4671
memory sidecar
jpn-- a84db1e
show me
jpn-- 29dabfe
record CPU usage
jpn-- 731dc07
peak mem use report
jpn-- 68bf709
arc contrasts
jpn-- b72594b
arc outputs
jpn-- 645450a
no resume_after if no breadcrumbs
jpn-- 67cf14e
fix arc full hh num
jpn-- f15ba72
chunk training mode def in workflow
jpn-- a88b0d6
resilient sidecar
jpn-- dbbba06
stream mp output via temp file
jpn-- 548f9fd
machine_info in report
jpn-- 2e52023
config flag to disable zarr
jpn-- 649955f
remove extra CR for windows
jpn-- 4ee8d6e
demo memory stress test
jpn-- f04b9e9
report settings
jpn-- 4f2d6b2
no memory profile on multiprocess
jpn-- 2c54d0c
extra timing log points for multiprocess
jpn-- 704766e
fix redownload error
jpn-- 689de8a
allow multi_thread
jpn-- 2dec68e
disable_zarr and report settings
jpn-- e2478cd
blacken
jpn-- 7dfcb53
remove pointless assertions
jpn-- 8059286
fix timetable tests for optimized code
jpn-- 93e9d58
changed error message
jpn-- 75c257f
Merge branch 'develop' into with-sharrow
jpn-- 68a0fe3
blacken
jpn-- db78bcd
require pypyr for workflows
jpn-- 52f8546
test TAZ recode in legacy model
jpn-- 491d65e
test sharrow
jpn-- e4eaa0a
require sharrow 2.2
jpn-- 184dfc4
include pypyr, zarr in test envs
jpn-- 1730085
check for travis
jpn-- b07757a
don't let coveralls fail tasks
jpn-- 769f0ab
auto offest_preprocessing detection, ARC tests
jpn-- 242f0d1
cache arc test for travis
jpn-- 736def4
offset_preprocessing for pipeline load
jpn-- 5ef9723
exclude sharrow cached flows from pycodestyle
jpn-- 697704d
tests in github actions
jpn-- 880edac
use unique env file
jpn-- 5722749
install without deps
jpn-- 007eaf2
other core tests
jpn-- 3b57e22
fix sandag tests
jpn-- b389ad0
add mtc tests to GA
jpn-- c55bf08
top constrain pytables
jpn-- aab5529
fix psrc test
jpn-- b2389b1
sharrowcache
jpn-- 843c959
matrixed example models
jpn-- 65c9b6b
nested hashing
jpn-- c1cb409
better name
jpn-- bfa533d
comprehensive regional test matrix
jpn-- 77fdeff
fix workflow
jpn-- 9e78765
don't fail-fast on regional models, depend only on linux foundation
jpn-- 3893bc9
fix GA
jpn-- cfb2288
fix for multizone on GA
jpn-- 22a0f4f
REGION_DEFS
jpn-- 2c0e0d2
reset cache
jpn-- f940cf5
repair sandag xborder model
jpn-- 4da3c61
blacken
jpn-- 4c54c9e
fix macos cache
jpn-- cb15d7f
aggressive caching
jpn-- d1a212c
unpin numpy
jpn-- 11303ab
test estimation, cache artifacts
jpn-- a73a746
sandag sharrow testing
jpn-- ec8d2de
sandag-1zone-mini
jpn-- 85e5059
init chunked workflow
jpn-- 25b46a0
sandag-1zone-complete
jpn-- 876c18a
bugfix
jpn-- 60b1c50
chunked sandag 1
jpn-- 37e8533
warn dont fail
jpn-- 3977f89
workflow updates
jpn-- 773caba
skipable chunk training
jpn-- c867921
blacken
jpn-- 02311b2
chunk size detection
jpn-- 3bfa43c
use settings_file in compile
jpn-- 4bc5b47
fix recursion
jpn-- aa21cd0
fix deadlock in reference MP
jpn-- 8b53ca6
blacken
jpn-- b0fd70a
comprehensive workflow
jpn-- 22b5efa
Ensure integer types for numbers
jpn-- ec98d75
add memory_profiling to comprehensive
jpn-- 5fadb20
add ARC single thread to comprehensive
jpn-- 4e42bb4
workflow notes
jpn-- 60e06ef
repair integers
jpn-- 5eef3d2
avoid interaction_df in interaction_simulate if no skims or tracing
jpn-- 14ff73e
trim memory peak in time table
jpn-- b2abd06
forced garbage collection option
jpn-- 024539a
short circuit chunk logic on disabled chunking
jpn-- fcf905a
swallow errors in workflow
jpn-- 7eada19
settings for mtc_comprehensive
jpn-- 675ede0
fix num_processes
jpn-- b9e23ff
sandag mp chunked
jpn-- 0ed85e4
sandag create for mp
jpn-- effc637
workflow name for chunked
jpn-- c084425
swallow errors in chunked
jpn-- ea902a4
seperate chunk cache for legacy and sharrow
jpn-- 1969f87
default chunk size should be None
jpn-- cf687d9
documentation cleanup
jpn-- 4ec5531
build docs
jpn-- 89e5e34
dummy code in setup.py
jpn-- 0f36391
docbuild env
jpn-- 2367ecc
blacken
jpn-- b3aaf4a
clean up workflow
jpn-- 632d88b
cache separate leg and sh
jpn-- 890861d
fix assertion error when chunking is disabled and adaptive chunking i…
jpn-- d048ead
blacken
jpn-- 17ea961
repair fallback version
jpn-- e819d07
sandag 1zone mp workflow
jpn-- 998e231
arc_mp
jpn-- e8fcb12
fix cols on ARC
jpn-- 107e270
turn on chunk training by default
jpn-- 8fc3041
Merge branch 'develop' into sharrow-black
jpn-- 618413d
fix merge error
jpn-- 4f12df4
change linter to Black
jpn-- 86850f2
merge error, lost timing notes
jpn-- 77ea21e
merge error in testing
jpn-- be4de1f
install black in Github Actions
jpn-- 7d1da5f
black and isort again
jpn-- f61db75
ignore _generated_version.py
jpn-- f5fa6c7
testing cleanup
jpn-- ec9a50b
pre-commit hooks
jpn-- 90e659c
blacken, flake8 config
jpn-- 4fb702c
fix regional test names for new scheme
jpn-- c52496f
clean naming
jpn-- d0cff5d
black linting on crossplatform
jpn-- da2172f
re-enable sharrow testing
jpn-- 468270b
stop emitting output dir
jpn-- 74b1465
trace files in nested directories
jpn-- bd326f9
allow unused vars
jpn-- 6720179
fix merge problems in proto mtc
jpn-- 3b12814
swap files for xborder model
jpn-- e92ac72
repair ARC MP
jpn-- 8784e35
Merge commit 'e92ac727454b1f1027fb7146a1ef130be1509580' into sharrow-…
jpn-- 844eec2
remove run_flags
jpn-- dc9d7f5
settings docs
jpn-- 633a362
add new settings to docs
jpn-- 345fe8a
docs update for publishing on CS fork
jpn-- ed8dcff
update docs to ref black not pycodestyle
jpn-- 982fdb6
protect memory profile
jpn-- File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,51 @@ | ||
name: ActivitySim Docs | ||
|
||
on: | ||
push: | ||
branches: [ main, develop, sharrow-black ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docbuild: | ||
if: ${{ github.repository }} == "camsys/activitysim" | ||
name: ubuntu-latest py3.9 | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
use-mamba: true | ||
environment-file: conda-environments/docbuild.yml | ||
python-version: 3.9 | ||
activate-environment: docbuild | ||
auto-activate-base: false | ||
auto-update-conda: false | ||
- name: Install activitysim | ||
run: | | ||
python -m pip install -e . | ||
- name: Conda checkup | ||
run: | | ||
conda info -a | ||
conda list | ||
echo ${{ github.repository }} | ||
- name: Build the docs | ||
run: | | ||
cd docs | ||
make clean | ||
make html | ||
- name: Push to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3.5.9 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Token is created automatically by Github Actions, no other config needed | ||
publish_dir: ./docs/_build/html |
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,308 @@ | ||
name: core-tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
env: | ||
CACHE_NUMBER: 1 # increase to reset cache manually | ||
|
||
jobs: | ||
foundation: | ||
|
||
strategy: | ||
matrix: | ||
python-version: [3.9] | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
name: linux-64-py${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Mambaforge | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: asim-test | ||
use-mamba: true | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set cache date for year and month | ||
run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: /usr/share/miniconda3/envs/asim-test | ||
key: linux-64-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} | ||
id: cache | ||
|
||
- name: Update environment | ||
run: mamba env update -n asim-test -f conda-environments/github-actions-tests.yml | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
- name: Install activitysim | ||
# installing without dependencies is faster, we trust that all needed dependencies | ||
# are in the conda environment defined above. Also, this avoids pip getting | ||
# confused and reinstalling tables (pytables). | ||
run: | | ||
python -m pip install -e . --no-deps | ||
|
||
- name: Conda checkup | ||
run: | | ||
mamba info -a | ||
mamba list | ||
|
||
- name: Lint with Black | ||
run: | | ||
# stop the build if there are problems | ||
black --check --diff . | ||
|
||
- name: Test activitysim.core | ||
run: | | ||
python -m pytest --pyargs activitysim.core | ||
|
||
- name: Test activitysim.abm.models | ||
run: | | ||
python -m pytest --pyargs activitysim.abm.models | ||
|
||
- name: Test activitysim.abm.test | ||
run: | | ||
python -m pytest --pyargs activitysim.abm.test | ||
|
||
- name: Test activitysim.cli | ||
run: | | ||
python -m pytest --pyargs activitysim.cli | ||
|
||
|
||
cross-platform: | ||
# also test foundation cross platforms, but do not require a successful | ||
# completion before starting regional model tests | ||
needs: foundation | ||
strategy: | ||
matrix: | ||
include: | ||
- os: macos-latest | ||
label: macOS | ||
prefix: /Users/runner/miniconda3/envs/asim-test | ||
python-version: 3.9 | ||
|
||
- os: windows-latest | ||
label: win-64 | ||
prefix: C:\Miniconda3\envs\asim-test | ||
python-version: 3.9 | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
name: ${{ matrix.label }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Mambaforge | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: asim-test | ||
use-mamba: true | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set cache date for year and month | ||
run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ matrix.prefix }} | ||
key: ${{ matrix.label }}-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} | ||
id: cache | ||
|
||
- name: Update environment | ||
run: mamba env update -n asim-test -f conda-environments/github-actions-tests.yml | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
- name: Install activitysim | ||
# installing without dependencies is faster, we trust that all needed dependencies | ||
# are in the conda environment defined above. Also, this avoids pip getting | ||
# confused and reinstalling tables (pytables). | ||
run: | | ||
python -m pip install -e . --no-deps | ||
|
||
- name: Conda checkup | ||
run: | | ||
mamba info -a | ||
mamba list | ||
|
||
- name: Lint with Black | ||
run: | | ||
# stop the build if there are problems | ||
black --check --diff . | ||
|
||
- name: Test activitysim.core | ||
run: | | ||
python -m pytest --pyargs activitysim.core | ||
|
||
- name: Test activitysim.abm.models | ||
run: | | ||
python -m pytest --pyargs activitysim.abm.models | ||
|
||
- name: Test activitysim.abm.test | ||
run: | | ||
python -m pytest --pyargs activitysim.abm.test | ||
|
||
- name: Test activitysim.cli | ||
run: | | ||
python -m pytest --pyargs activitysim.cli | ||
|
||
|
||
regional_models: | ||
needs: foundation | ||
env: | ||
mamba-env-prefix: /usr/share/miniconda3/envs/asim-test | ||
python-version: 3.9 | ||
label: linux-64 | ||
strategy: | ||
matrix: | ||
region: | ||
- prototype_mtc | ||
- prototype_arc | ||
- placeholder_psrc | ||
- prototype_marin | ||
- prototype_mtc_extended | ||
- placeholder_sandag | ||
- prototype_sandag_xborder | ||
- prototype_semcog | ||
- placeholder_multiple_zone | ||
fail-fast: false | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
name: ${{ matrix.region }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Mambaforge | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: asim-test | ||
use-mamba: true | ||
python-version: ${{ env.python-version }} | ||
|
||
- name: Set cache date for year and month | ||
run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.mamba-env-prefix }} | ||
key: ${{ env.label }}-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} | ||
id: cache | ||
|
||
- name: Update environment | ||
run: mamba env update -n asim-test -f conda-environments/github-actions-tests.yml | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
- name: Install activitysim | ||
# installing without dependencies is faster, we trust that all needed dependencies | ||
# are in the conda environment defined above. Also, this avoids pip getting | ||
# confused and reinstalling tables (pytables). | ||
run: | | ||
python -m pip install -e . --no-deps | ||
|
||
- name: Conda checkup | ||
run: | | ||
mamba info -a | ||
mamba list | ||
|
||
# TODO: Cache sharrow compiled flows? The contents of __pycache__ appear to | ||
# be ignored, so this is not working as expected right now | ||
# | ||
# - name: Define Inputs | ||
# run: echo "REGION_DEFS=activitysim/examples/${{ matrix.region }}/** " >> $GITHUB_ENV | ||
# | ||
# - name: Get a random number | ||
# run: echo "RANDOM_SUFFIX=${RANDOM}${RANDOM}" >> $GITHUB_ENV | ||
# | ||
# - uses: actions/cache@v2 | ||
# # store the regional model's cache directory in github actions cache | ||
# # this will (almost) never hit on primary key due to the random number | ||
# # but will pull the most recent cache from restore-keys... and then | ||
# # update the cache with additional compiled flows as needed. | ||
# # Hoping this will result in fewer re-compiles on tests and faster | ||
# # testing overall | ||
# with: | ||
# path: activitysim/examples/${{ matrix.region }}/test/output/cache | ||
# key: ${{ matrix.region }}-${{ env.label }}-${{ hashFiles(env.REGION_DEFS) }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}-${{ env.RANDOM_SUFFIX }} | ||
# restore-keys: | | ||
# ${{ matrix.region }}-${{ env.label }}-${{ hashFiles(env.REGION_DEFS) }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} | ||
# id: cache-example | ||
|
||
- name: Test ${{ matrix.region }} | ||
run: | | ||
python -m pytest activitysim/examples/${{ matrix.region }}/test --durations=0 | ||
|
||
estimation_mode: | ||
needs: foundation | ||
env: | ||
mamba-env-prefix: /usr/share/miniconda3/envs/asim-test | ||
python-version: 3.9 | ||
label: linux-64 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
name: estimation_mode_test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Mambaforge | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: asim-test | ||
use-mamba: true | ||
python-version: ${{ env.python-version }} | ||
|
||
- name: Set cache date for year and month | ||
run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.mamba-env-prefix }} | ||
key: ${{ env.label }}-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} | ||
id: cache | ||
|
||
- name: Update environment | ||
run: mamba env update -n asim-test -f conda-environments/github-actions-tests.yml | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
- name: Install Larch | ||
run: mamba install "larch>=5.5.3" | ||
|
||
- name: Install activitysim | ||
# installing without dependencies is faster, we trust that all needed dependencies | ||
# are in the conda environment defined above. Also, this avoids pip getting | ||
# confused and reinstalling tables (pytables). | ||
run: | | ||
python -m pip install -e . --no-deps | ||
|
||
- name: Conda checkup | ||
run: | | ||
mamba info -a | ||
mamba list | ||
|
||
- name: Test Estimation Mode | ||
run: | | ||
python -m pytest activitysim/estimation/test/test_larch_estimation.py --durations=0 |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
repos: | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
exclude: .*\.ipynb | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black", "--filter-files"] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.6.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should clean up these references before merging.