Skip to content

.github/workflows/compile_all_examples.yaml #51

.github/workflows/compile_all_examples.yaml

.github/workflows/compile_all_examples.yaml #51

on:
workflow_dispatch:
inputs:
linux_os_name:
required: true
type: string
default: "ubuntu-latest"
windows_os_name:
required: true
type: string
default: "windows-latest"
macos_os_name:
required: true
type: string
default: "macos-latest"
versions:
required: false
type: string
python_version:
required: true
type: string
default: 3.11
#FIXME boilerplate code, use matrix
jobs:
compile-all-examples-linux:
if: ${{ inputs.linux_os_name != 'NO' }}
runs-on: ${{ inputs.linux_os_name }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}
- run: >
python3 -m pip install -r lib/python/requirements.txt;
python3 tests/compile_all_examples.py ${{ inputs.versions }} remove_installation;
compile-all-examples-windows:
if: ${{ inputs.windows_os_name != 'NO' }}
runs-on: ${{ inputs.windows_os_name }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}
- run: >
python3 -m pip install -r lib/python/requirements.txt;
python3 tests/compile_all_examples.py ${{ inputs.versions }} remove_installation;
compile-all-examples-macos:
if: ${{ inputs.macos_os_name != 'NO' }}
runs-on: ${{ inputs.macos_os_name }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}
- run: >
python3 -m pip install -r lib/python/requirements.txt;
python3 tests/compile_all_examples.py ${{ inputs.versions }} remove_installation;