-
Notifications
You must be signed in to change notification settings - Fork 24
60 lines (49 loc) · 1.21 KB
/
run_tests.yaml
File metadata and controls
60 lines (49 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: NuMojo Unit Tests
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
pull-requests: read
jobs:
testing-numojo:
name: with ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: ["ubuntu-22.04", "macos-14"]
os: ["ubuntu-22.04"]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: noninteractive
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install pixi
run: |
curl -fsSL https://pixi.sh/install.sh | bash
echo "$HOME/.pixi/bin" >> $GITHUB_PATH
export PATH="$HOME/.pixi/bin:$PATH"
- name: Pixi install
run: |
pixi install --locked
- name: Build package
run: |
pixi run mojo package numojo
cp numojo.mojopkg tests/
- name: Run Core Tests
run: |
echo "Testing core modules..."
pixi run test_core
- name: Run Routine Tests
run: |
echo "Testing routines..."
pixi run test_routines
- name: Cleanup
if: always()
run: |
rm -f tests/numojo.mojopkg