Skip to content
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

GitHub actions #1395

Merged
merged 7 commits into from
Nov 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ branches:
- appveyor
- /devel.*/
- /.*-avy/
- /.*-ci/
- /ci-.*/

environment:
PYTHONWARNINGS: ignore::DeprecationWarning
Expand All @@ -20,10 +20,6 @@ environment:
EXTRA_ARGS: -m llvm
- PYTHON: Python37
EXTRA_ARGS: -m llvm
- PYTHON: Python36
ARCH: -x64
- PYTHON: Python37
ARCH: -x64

install:
- if not exist %GRAPHVIZ_INSTALLER% appveyor-retry curl https://graphviz.gitlab.io/_pages/Download/windows/%GRAPHVIZ_INSTALLER% -o %GRAPHVIZ_INSTALLER%
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/pnl-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: PsyNeuLink CI

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 7
matrix:
python-version: [3.6, 3.7, 3.8]
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- os: windows-latest
python-version: 3.8
- os: macos-latest
python-version: 3.8

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 10
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: MacOS dependencies
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install graphviz
if: matrix.os == 'macos-latest'
- name: Linux dependencies
run: sudo apt-get install -y graphviz
if: matrix.os == 'ubuntu-latest'
- name: Windows dependencies
run: |
choco install --no-progress -y graphviz
python -m pip install --upgrade pip
pip install torch -f https://download.pytorch.org/whl/cpu/torch_stable.html
if: matrix.os == 'windows-latest'
- name: Python3.8 dependencies setup
run: |
sed -i.tmp "/torch/d" requirements.txt
pip install cython llvmlite==0.26
if: matrix.python-version == '3.8'
env:
LLVM_CONFIG: llvm-config-6.0
- name: Shared dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
pip install --user git+https://github.com/benureau/leabra.git@master
- name: Lint with flake8
shell: bash
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: pytest
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ branches:
- devel
- /devel-.*/
- /travis.*/
- /ci-.*/

language: shell

Expand Down