This repository has been archived by the owner on May 29, 2024. It is now read-only.
Use abs from the stdlib (#102) #356
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run mojo unit Tests | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install modular CLI | |
env: | |
MODULAR_AUTH: ${{ secrets.MODULAR_AUTH }} | |
run: | | |
curl https://get.modular.com | MODULAR_AUTH="$MODULAR_AUTH" sh - | |
modular auth "$MODULAR_AUTH" | |
- name: Install mojo CLI | |
run: | | |
modular install mojo | |
- name: Run tests | |
run: | | |
export MODULAR_HOME="/home/runner/.modular" | |
export PATH="/home/runner/.modular/pkg/packages.modular.com_mojo/bin:$PATH" | |
mojo -D MOJO_ENABLE_ASSERTIONS run_all_tests.mojo | |
mojo -D MOJO_ENABLE_ASSERTIONS run_all_tests.mojo |