Skip to content

Commit

Permalink
update CI depnedencies, add nimble task for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Jun 16, 2024
1 parent a69262e commit 11416f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,24 @@ jobs:
update: true
install: base-devel git mingw-w64-x86_64-toolchain

- name: Install dependencies (Ubuntu)
if: ${{matrix.target == 'linux'}}
run: |
sudo apt-get update
sudo apt-get install -y python-numpy python3-numpy
- name: Install dependencies (OSX)
if: ${{matrix.target == 'macos'}}
run: |
brew install numpy
- name: Install dependencies (Windows)
if: ${{matrix.target == 'windows'}}
shell: msys2 {0}
run: |
pacman -Syu --noconfirm
pacman -S --needed --noconfirm mingw-w64-x86_64-lapack
pacman -S --needed --noconfirm mingw-w64-x86_64-python-numpy
- name: Setup nimble & deps
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions scinim.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ requires "threading"
requires "arraymancer >= 0.7.3"
requires "polynumeric >= 0.2.0"
requires "nimpy >= 0.2.0"

task test, "Run all tests":
exec "nim c -r tests/tnumpyarrays.nim"
exec "nim c -r --gc:orc tests/tnumpyarrays.nim"
exec "nim cpp -r tests/tnumpyarrays.nim"
exec "nim cpp -r --gc:orc tests/tnumpyarrays.nim"

0 comments on commit 11416f6

Please sign in to comment.