Skip to content

Pretty docs (#19)

Pretty docs (#19) #1

Workflow file for this run

name: Build and test
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install magic CLI
run: |
curl -ssL https://magic.modular.com | bash
source /home/runner/.bash_profile
- name: Install mojo and dependencies
run: |
source /home/runner/.bash_profile
magic install --locked
- name: Run tests
run: |
source /home/runner/.bash_profile
magic run mojo test --validate-doc-strings --sanitize address -I ExtraMojo/ test
magic run mojo run -I ExtraMojo/ ./test_file.mojo
- name: Check formatting
run: |
source /home/runner/.bash_profile
if magic run mojo format ExtraMojo/* 2>&1 | grep -E "reformatted|error|failed" ; then echo "Formatter failed" ; exit 1 ; els; e echo "Formatting OK"; fi
if magic run mojo format test_* 2>&1 | grep -E "reformatted|error|failed" ; then echo "Formatter failed" ; exit 1 ; els; e echo "Formatting OK"; fi