Skip to content

Commit

Permalink
Merge pull request #1318 from PrincetonUniversity/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
dillontsmith authored Sep 21, 2019
2 parents 71d8a0b + 34154fb commit 546edf4
Show file tree
Hide file tree
Showing 331 changed files with 61,922 additions and 18,595 deletions.
38 changes: 22 additions & 16 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,56 @@
version: '{build}'
clone_depth: 25

branches:
only:
- master
- devel
- appveyor
- /devel.*/
- /.*-avy/
- /.*-ci/

environment:
PYTHONWARNINGS: ignore::DeprecationWarning
PATH: '%APPDATA%\Python\%PYTHON%\Scripts;C:\%PYTHON%%ARCH%\Scripts;C:\%PYTHON%\Scripts;%PATH%'
GRAPHVIZ_VERSION: 2.38
GRAPHVIZ_INSTALLER: graphviz-%GRAPHVIZ_VERSION%.msi
PATH: '%APPDATA%\Python\%PYTHON%\Scripts;C:\%PYTHON%%ARCH%\Scripts;C:\%PYTHON%\Scripts;C:\Program Files (x86)\Graphviz%GRAPHVIZ_VERSION%\bin;%PATH%'
matrix:
- PYTHON: Python36
EXTRA_ARGS: -m llvm
- PYTHON: Python37
EXTRA_ARGS: -m llvm
- PYTHON: Python36
ARCH: -x64
PYTORCH: cp36-cp36m
- PYTHON: Python37
ARCH: -x64
PYTORCH: cp37-cp37m

install:
- choco upgrade graphviz.portable -y
- if not exist %GRAPHVIZ_INSTALLER% appveyor-retry curl https://graphviz.gitlab.io/_pages/Download/windows/%GRAPHVIZ_INSTALLER% -o %GRAPHVIZ_INSTALLER%
- msiexec.exe /i %GRAPHVIZ_INSTALLER% /passive
- pip --version
- pip install --user -U pip
- pip --version
# certifi upgrade is needed by pytest-profiling (it does not set the dependencies right)
# numpy 1.16 gets pulled by leabra below and pnl downgrades it to <1.16 later
# llvmlite==0.27 segfaults in windows when using 64bit python
- pip install --user -U certifi "numpy<1.16" "llvmlite<0.27"
- pip install --user -U certifi "numpy<1.16"
- pip install --user git+https://github.com/benureau/leabra.git@master

# pytorch does not distribute packages over pypi. Install it directly.
- if not "%PYTORCH%" == "" pip install --user http://download.pytorch.org/whl/cpu/torch-0.4.1-%PYTORCH%-win_amd64.whl

# Remove pytorch from requirements if none is available
- if "%PYTORCH%" == "" (findstr /V torch < dev_requirements.txt > tmp_req && move /Y tmp_req dev_requirements.txt)
# pytorch does not distribute windows packages over pypi.
# Install it directly, or remove from requirements if not available (win32).
- if "%ARCH%" == "" (findstr /V torch < dev_requirements.txt > tmp_req && move /Y tmp_req dev_requirements.txt) else (pip install --user torch -f https://download.pytorch.org/whl/cpu/torch_stable.html)

- pip install --user -e .[dev]

cache:
- '%LOCALAPPDATA%\pip\Cache -> .appveyor.yml'
- 'C:\ProgramData\chocolatey\lib -> .appveyor.yml'
- 'C:\ProgramData\chocolatey\bin -> .appveyor.yml'
- '%LOCALAPPDATA%\pip\Cache'
- '%GRAPHVIZ_INSTALLER%'

build: off

test_script:
- pytest --junit-xml=tests_out.xml tests/ %EXTRA_ARGS%
- pytest --junit-xml=tests_out.xml -n auto --strict-markers %EXTRA_ARGS%

on_finish:
# Upload tests to appveyor overview
- curl -X POST -F "file=@tests_out.xml" https://ci.appveyor.com/api/testresults/junit/%APPVEYOR_JOB_ID%
- appveyor-retry curl -X POST -F "file=@tests_out.xml" https://ci.appveyor.com/api/testresults/junit/%APPVEYOR_JOB_ID%
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,9 @@ ENV/

Scripts/Scratch\ Pad.py

# pdfs generated by test run
## pdfs generated by test run
show_graph\ OUTPUT/
tests/*.pdf

# mypy cache
.mypy_cache

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions .idea/runConfigurations/LVOC_Stroop_XOR_Model.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .idea/runConfigurations/Make_HTML.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/runConfigurations/Predator_Prey_Model_DQN.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions .idea/runConfigurations/Scratch_Pad.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions .idea/runConfigurations/Stroop_Basic.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions .idea/runConfigurations/Stroop_Model___Conflict_Monitoring.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/runConfigurations/Stroop_Model___EVC.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .idea/runConfigurations/_Gating_Mechanism.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions .idea/runConfigurations/_Mixed_NN_and_DDM.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .idea/runConfigurations/_Multilayer_Learning.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/_RL_DDM.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions .idea/runConfigurations/_Reinforcement_Learning.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 546edf4

Please sign in to comment.