Run example in addition to tests #8
Workflow file for this run
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 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 | |