Skip to content

Fix CMake scripts and provide full support for shapely2 (#79) #64

Fix CMake scripts and provide full support for shapely2 (#79)

Fix CMake scripts and provide full support for shapely2 (#79) #64

Workflow file for this run

name: DeNSE CI
env:
DO_PLOT: 0
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
path: ~/.cache/pip
python: python3
pip: pip3
- os: macos-latest
path: ~/Library/Caches/pip
python: python3
pip: pip3
- os: windows-latest
path: ~\AppData\Local\pip\Cache
python: python
pip: pip
steps:
- name: Checkout repo content
uses: actions/checkout@master
with:
submodules: recursive
- name: Cache Homebrew
if: ${{ matrix.os == 'macos-latest' }}
uses: actions/cache@v3
with:
path: ~/Library/Caches/Homebrew
key: homebrew-cache
- name: Cache pip
uses: actions/cache@v3
with:
path: ${{ matrix.path }}
key: ${{ matrix.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- name: Cache conda
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/cache@v3
with:
path: ~/conda_pkgs_dir
key: conda-cache
- name: Activate Conda Windows
if: ${{ matrix.os == 'windows-latest' }}
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
- name: Build Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
chmod +x extra/install_debian.sh
cd extra
./install_debian.sh
- name: Build MacOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
rm -rf /usr/local/bin/2to3
brew unlink gcc gcc@10 || true
chmod +x extra/install_macos.sh
cd extra
./install_macos.sh
- name: Build Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
conda install cmake geos boost shapely
pip install setuptools "cython<3"
pip install scipy numpy matplotlib pytest pint PyOpenGL svg.path dxfgrabber networkx pyneuroml
pip install nngt
cd extra
./install_windows.cmd
- name: Test
run: |
${{ matrix.pip }} install pytest
${{ matrix.python }} -m pytest tests --ignore=tests/todo