Skip to content

Commit

Permalink
update test flow for 24.5
Browse files Browse the repository at this point in the history
  • Loading branch information
forFudan committed Sep 27, 2024
1 parent c34f80b commit 5cfec8f
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: NuMojo Unit Tests
on:
push:
branches:
- testflow
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -28,26 +31,28 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Download Modular installer
- name: Install magic
run: |
curl -s https://get.modular.com | sh -
curl -ssL https://magic.modular.com/ff414efd-16ac-4bf3-8efc-50b059272ab6 | bash
- name: Add path
run: |
source $HOME/.bash_profile
echo "MODULAR_HOME=$HOME/.modular" >> $GITHUB_ENV
echo "$HOME/.modular/bin" >> $GITHUB_PATH
echo "$HOME/.modular/pkg/packages.modular.com_mojo/bin" >> $GITHUB_PATH
- name: Activate virtualenv
run: |
python3 -m venv $HOME/venv/
. $HOME/venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install Mojo
- name: Install packages
run: |
modular install mojo
- name: Set path Mojo
run: |
echo "MODULAR_HOME=$HOME/.modular" >> $GITHUB_ENV
echo "$HOME/.modular/pkg/packages.modular.com_mojo/bin" >> $GITHUB_PATH
pip install "numpy"
- name: Run tests
run: |
pip install "numpy<2.0"
mojo test tests -I .
magic install
magic run mojo test tests -I .

0 comments on commit 5cfec8f

Please sign in to comment.