Skip to content

Commit 9cc177b

Browse files
Merge pull request #14 from shivasankarka/improve_getter
[core] Improve Item
2 parents 8f6a0d1 + 1863203 commit 9cc177b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+13696
-2049
lines changed

.github/workflows/run_tests.yaml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,46 @@ jobs:
3737
3838
- name: Pixi install
3939
run: |
40-
pixi install
40+
pixi install --locked
4141
4242
- name: Build package
4343
run: |
4444
pixi run mojo package numojo
4545
cp numojo.mojopkg tests/
4646
47-
- name: Run tests
47+
- name: Run Core Tests
4848
run: |
49-
pixi run mojo test tests -I .
50-
pixi run mojo test tests/core/test_matrix.mojo -I . -D F_CONTIGUOUS
49+
echo "Testing core modules..."
50+
pixi run mojo run -I tests/ tests/core/test_array_indexing_and_slicing.mojo
51+
pixi run mojo run -I tests/ tests/core/test_array_methods.mojo
52+
pixi run mojo run -I tests/ tests/core/test_bool_masks.mojo
53+
pixi run mojo run -I tests/ tests/core/test_complexArray.mojo
54+
pixi run mojo run -I tests/ tests/core/test_complexSIMD.mojo
55+
pixi run mojo run -I tests/ tests/core/test_matrix.mojo
56+
pixi run mojo run -I tests/ -D F_CONTIGUOUS tests/core/test_matrix.mojo
57+
pixi run mojo run -I tests/ tests/core/test_shape_strides_item.mojo
58+
59+
- name: Run Routine Tests
60+
run: |
61+
echo "Testing routines..."
62+
pixi run mojo run -I tests/ tests/routines/test_creation.mojo
63+
pixi run mojo run -I tests/ tests/routines/test_functional.mojo
64+
pixi run mojo run -I tests/ tests/routines/test_indexing.mojo
65+
pixi run mojo run -I tests/ tests/routines/test_io.mojo
66+
pixi run mojo run -I tests/ tests/routines/test_linalg.mojo
67+
pixi run mojo run -I tests/ tests/routines/test_manipulation.mojo
68+
pixi run mojo run -I tests/ tests/routines/test_math.mojo
69+
pixi run mojo run -I tests/ tests/routines/test_random.mojo
70+
pixi run mojo run -I tests/ tests/routines/test_statistics.mojo
71+
pixi run mojo run -I tests/ tests/routines/test_sorting.mojo
72+
pixi run mojo run -I tests/ tests/routines/test_searching.mojo
73+
74+
- name: Run Science Tests
75+
run: |
76+
echo "Testing science modules..."
77+
pixi run mojo run -I tests/ tests/science/test_signal.mojo
78+
79+
- name: Cleanup
80+
if: always()
81+
run: |
82+
rm -f tests/numojo.mojopkg

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
# pixi environments
1414
.pixi
15-
pixi.lock
1615
/venv
1716

1817

@@ -28,6 +27,7 @@ numojo.mojopkg
2827
/bench.mojo
2928
/test*.mojo
3029
/test*.ipynb
30+
bench_*.mojo
3131
/tempCodeRunnerFile.mojo
3232
kgen.trace.*
3333

README.MD

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,18 +205,18 @@ backend = {name = "pixi-build-mojo", version = "0.*"}
205205
name = "your_package_name"
206206

207207
[package.host-dependencies]
208-
modular = ">=25.5.0,<26"
208+
modular = ">=25.7.0,<26"
209209

210210
[package.build-dependencies]
211-
modular = ">=25.5.0,<26"
211+
modular = ">=25.7.0,<26"
212212
numojo = { git = "https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo", branch = "main"}
213213

214214
[package.run-dependencies]
215-
modular = ">=25.5.0,<26"
215+
modular = ">=25.7.0,<26"
216216
numojo = { git = "https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo", branch = "main"}
217217

218218
[dependencies]
219-
max = "=25.5.0"
219+
modular = ">=25.7.0,<26"
220220
numojo = { git = "https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo", branch = "main"}
221221
```
222222

@@ -227,7 +227,7 @@ pixi install
227227

228228
**Branch Selection:**
229229
- **`main` branch**: Provides stable release. Currently supports NuMojo v0.7.0, compatible with Mojo 25.3.0. For earlier NuMojo versions, use Method 2.
230-
- **`pre-x.y` branches**: Active development branch supporting the latest Mojo version (currently 25.5.0). Note that this branch receives frequent updates and may have breaking changes in features and syntax.
230+
- **`pre-x.y` branches**: Active development branch supporting the latest Mojo version (currently 25.7.0). Note that this branch receives frequent updates and may have breaking changes in features and syntax.
231231

232232
The package will be automatically available in your Pixi environment, and VSCode LSP will provide intelligent code hints.
233233

0 commit comments

Comments
 (0)