Skip to content

Only set system Python variable on macOS-latest #1757

Only set system Python variable on macOS-latest

Only set system Python variable on macOS-latest #1757

Workflow file for this run

# Based on example from https://github.com/julia-actions/julia-runtest
name: Run tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
fail-fast: false
timeout-minutes: 50
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
if: ${{ matrix.os != macOS-latest}}

Check failure on line 23 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Run tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 23, Col: 13): Unrecognized named-value: 'macOS-latest'. Located at position 15 within expression: matrix.os != macOS-latest .github/workflows/test.yml (Line: 25, Col: 13): Unrecognized named-value: 'macOS-latest'. Located at position 15 within expression: matrix.os == macOS-latest
- uses: julia-actions/julia-buildpkg@v1
if: ${{ matrix.os == macOS-latest}}
env:
# Use the system Python for PyCall - avoids library linking error on macOS
PYTHON: "${{ env.pythonLocation }}/bin/python"
- run: |
pip3 install --user matplotlib
- uses: julia-actions/julia-runtest@v1