Paper mohamed #3
This file contains hidden or 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-example | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| example: | |
| name: Run example.jl (${{ matrix.version }} - ${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ['lts', '1'] | |
| os: [ubuntu-latest, macOS-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.version }} | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.julia/artifacts | |
| key: ${{ runner.os }}-examples-${{ hashFiles('paper/examples/Project.toml') }} | |
| - name: Instantiate example environment | |
| run: | | |
| julia --project=paper/examples -e "using Pkg; Pkg.instantiate()" | |
| - name: Run example.jl | |
| run: | | |
| julia --project=paper/examples paper/examples/example.jl | |