Skip to content

move env PYTHON to top level #1513

move env PYTHON to top level

move env PYTHON to top level #1513

Workflow file for this run

# Based on example from https://github.com/julia-actions/julia-runtest
name: Check examples
on: [push, pull_request]
env:
PYTHON: "${{ env.pythonLocation }}/bin/python"

Check failure on line 7 in .github/workflows/examples.yml

View workflow run for this annotation

GitHub Actions / Check examples

Invalid workflow file

The workflow is not valid. .github/workflows/examples.yml (Line: 7, Col: 11): Unrecognized named-value: 'env'. Located at position 1 within expression: env.pythonLocation
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'