Skip to content
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
52 changes: 52 additions & 0 deletions .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Windows Tests
on: [push, pull_request, workflow_dispatch]

jobs:
build:
name: Tests Windows

runs-on: windows-2019

env:
AMICI_SKIP_CMAKE_TESTS: "TRUE"
openBLAS_version: "0.3.12"

steps:
- uses: actions/checkout@master
- run: git fetch --prune --unshallow

- shell: bash
run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV
- shell: bash
run: echo "C:\\BLAS\\bin" >> $GITHUB_PATH
- shell: bash
run: echo "BLAS_LIBS=/LIBPATH:C:/BLAS/lib openblas.lib" >> $GITHUB_ENV
- shell: bash
run: echo "BLAS_CFLAGS=-IC:/BLAS/OpenBLAS-${openBLAS_version}/OpenBLAS-${openBLAS_version}" >> $GITHUB_ENV

# Developer Command Prompt for Microsoft Visual C++
- uses: ilammy/msvc-dev-cmd@v1

- name: Install deps
shell: bash
run: |
python -m pip install --upgrade pip \
&& pip install pytest petab \
&& choco install -y ninja \
&& choco install -y swig --version=4.0.1

- name: Install OpenBLAS
shell: powershell
run: scripts/installOpenBLAS

- name: Create sdist
working-directory: python/sdist
run: python setup.py sdist

- name: Install sdist
working-directory: python/sdist
shell: bash
run: pip install -v $(ls -t dist/amici-*.tar.gz | head -1)

- name: Run Python tests
run: python -m pytest --ignore-glob=*petab* --ignore-glob=*special* python/tests
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/compileBLAS.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
echo compileBLAS.cmd started for openBLAS version %1
cd "C:\BLAS\OpenBLAS-%1\OpenBLAS-%1"
cd /D "C:\BLAS\OpenBLAS-%1\OpenBLAS-%1"
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
cmake -G "Ninja" ^
-DBUILD_DOUBLE=1 ^
Expand Down
2 changes: 1 addition & 1 deletion scripts/installOpenBLAS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $output = "C:\BLAS\v$version.zip"
$webclient = New-Object System.Net.WebClient
$webclient.DownloadFile($uri,"$output")
Expand-Archive -Path "C:\BLAS\v$version.zip" -DestinationPath "C:\BLAS\OpenBLAS-$version" -Force # expand zip file
cmd /c "C:\Users\travis\build\AMICI\scripts\compileBLAS.cmd $version"
cmd /c "scripts\compileBLAS.cmd $version"
New-Item -Path 'C:\BLAS\lib' -ItemType Directory -Force # create directory
Copy-Item "C:\BLAS\OpenBLAS-$version\OpenBLAS-$version\lib\Release\openblas.lib" -Destination "C:\BLAS\lib" -Recurse
New-Item -Path 'C:\BLAS\bin' -ItemType Directory -Force # create directory
Expand Down