attempt to fix global #1514
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
# Based on example from https://github.com/julia-actions/julia-runtest | |
name: Check examples | |
on: [push, pull_request] | |
env: | |
PYTHON: python | |
jobs: | |
examples: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
fail-fast: false | |
timeout-minutes: 25 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1.8' | |
arch: x64 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- name: Test examples | |
run: | | |
pip3 install --user matplotlib | |
# Reduce nstep for each example to 10 to avoid the CI job taking too long | |
julia --project -O3 -e 'using moment_kinetics; for (root, dirs, files) in walkdir("examples") for file in files if endswith(file, ".toml") filename = joinpath(root, file); println(filename); input = moment_kinetics.moment_kinetics_input.read_input_file(filename); input["nstep"] = 10; run_moment_kinetics(input) end end end' |