Skip to content

Commit

Permalink
add test dep. & test task, install test deps in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Jan 24, 2022
1 parent 3edb189 commit 11f136d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]

schedule:
# Run every month the 20th when the clock is 13:00 UTC
# Run every month the 20th when the clock is 13:00 UTC
- cron: '0 13 20 * *'

# Allows you to run this workflow manually from the Actions tab
Expand All @@ -35,5 +35,5 @@ jobs:
with:
nim-version: ${{ matrix.nim }}
- run: nimble install -Y
- run: nimble testDeps -Y
- run: nimble test

13 changes: 13 additions & 0 deletions numericalnim.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,16 @@ srcDir = "src"
requires "nim >= 1.0"
requires "arraymancer >= 0.5.0"
requires "https://github.com/HugoGranstrom/cdt#head"

task testDeps, "Install external dependencies required for tests":
## installs all required external dependencies that are only used
## for tests
exec "nimble install https://github.com/SciNim/Measuremancer.git"

task test, "Run all tests":
exec "nim c -r --experimental:unicodeOperators tests/test_integrate.nim"
exec "nim c -r tests/test_interpolate.nim"
exec "nim c -r tests/test_ode.nim"
exec "nim c -r tests/test_optimize.nim"
exec "nim c -r tests/test_utils.nim"
exec "nim c -r tests/test_vector.nim"

0 comments on commit 11f136d

Please sign in to comment.