WIP: Run examples in CI #1
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: Test examples | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'AUTHORS.md' | ||
- 'CITATION.bib' | ||
- 'CONTRIBUTING.md' | ||
- 'LICENSE.md' | ||
- 'NEWS.md' | ||
- 'README.md' | ||
- '.github/workflows/CompatHelper.yml' | ||
- '.github/workflows/TagBot.yml' | ||
- '.gitignore' | ||
pull_request: | ||
paths-ignore: | ||
- 'AUTHORS.md' | ||
- 'CITATION.bib' | ||
- 'CONTRIBUTING.md' | ||
- 'LICENSE.md' | ||
- 'NEWS.md' | ||
- 'README.md' | ||
- '.github/workflows/CompatHelper.yml' | ||
- '.github/workflows/TagBot.yml' | ||
- '.gitignore' | ||
# Cancel redundant CI tests automatically | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
julia-version: ['1.9', '1'] | ||
julia-arch: x64 | ||
Check failure on line 40 in .github/workflows/test_examples.yml GitHub Actions / Test examplesInvalid workflow file
|
||
os: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
arch: ${{ matrix.julia-arch }} | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- name: Example 1 | ||
shell: julia --color=yes {0} | ||
run: | | ||
using Pkg | ||
@info "DEBUG" pwd() | ||
Pkg.activate(".") | ||
Pkg.instantiate() | ||
include(joinpath("examples", "t8_step0_helloworld.jl")) |