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
38 changes: 35 additions & 3 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,39 @@ jobs:
pixi run mojo package numojo
cp numojo.mojopkg tests/

- name: Run tests
- name: Run Core Tests
run: |
pixi run mojo test tests -I .
pixi run mojo test tests/core/test_matrix.mojo -I . -D F_CONTIGUOUS
echo "Testing core modules..."
pixi run mojo run -I tests/ tests/core/test_array_indexing_and_slicing.mojo
pixi run mojo run -I tests/ tests/core/test_array_methods.mojo
pixi run mojo run -I tests/ tests/core/test_bool_masks.mojo
pixi run mojo run -I tests/ tests/core/test_complexArray.mojo
pixi run mojo run -I tests/ tests/core/test_complexSIMD.mojo
pixi run mojo run -I tests/ tests/core/test_matrix.mojo
pixi run mojo run -I tests/ -D F_CONTIGUOUS tests/core/test_matrix.mojo
pixi run mojo run -I tests/ tests/core/test_shape_strides_item.mojo

- name: Run Routine Tests
run: |
echo "Testing routines..."
pixi run mojo run -I tests/ tests/routines/test_creation.mojo
pixi run mojo run -I tests/ tests/routines/test_functional.mojo
pixi run mojo run -I tests/ tests/routines/test_indexing.mojo
pixi run mojo run -I tests/ tests/routines/test_io.mojo
pixi run mojo run -I tests/ tests/routines/test_linalg.mojo
pixi run mojo run -I tests/ tests/routines/test_manipulation.mojo
pixi run mojo run -I tests/ tests/routines/test_math.mojo
pixi run mojo run -I tests/ tests/routines/test_random.mojo
pixi run mojo run -I tests/ tests/routines/test_statistics.mojo
pixi run mojo run -I tests/ tests/routines/test_sorting.mojo
pixi run mojo run -I tests/ tests/routines/test_searching.mojo

- name: Run Science Tests
run: |
echo "Testing science modules..."
pixi run mojo run -I tests/ tests/science/test_signal.mojo

- name: Cleanup
if: always()
run: |
rm -f tests/numojo.mojopkg
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ numojo.mojopkg
/bench.mojo
/test*.mojo
/test*.ipynb
bench_*.mojo
/tempCodeRunnerFile.mojo
kgen.trace.*

Expand Down
Loading