diff --git a/.github/workflows/test_examples.yml b/.github/workflows/test_examples.yml new file mode 100644 index 0000000..c9a9e6c --- /dev/null +++ b/.github/workflows/test_examples.yml @@ -0,0 +1,57 @@ +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 + 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"))