Skip to content

example tests

example tests #800

Workflow file for this run

name: example tests
on:
push:
pull_request:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * *'
jobs:
example-tests:
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-13, macos-14]
python_version: [3.x]
sumo_version: [head, release]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Install Python dependencies
run: python -m pip install --upgrade pip numpy
- run: brew tap dlr-ts/sumo
- name: Install SUMO release
if: matrix.sumo_version == 'release'
run: brew install --with-examples sumo
- name: Install SUMO HEAD
if: matrix.sumo_version == 'head'
run: brew install --with-examples --HEAD sumo
- run: python $(brew --prefix sumo)/share/sumo/docs/examples/runAll.py