Skip to content

Run example in addition to tests #8

Run example in addition to tests

Run example in addition to tests #8

Workflow file for this run

name: Run tests
on: ["push"]
jobs:
build:
strategy:
matrix:
include:
- { target: linux-64, os: ubuntu-22.04 }
- { target: osx-arm64, os: macos-14 }
fail-fast: false
runs-on: ${{ matrix.os }}
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install magic
run: |
curl -ssL https://magic.modular.com | bash
- name: Execute tests
run: |
source $HOME/.bash_profile
magic run mojo run example.mojo
magic run test