Skip to content

Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10 #551

Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10

Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10 #551

name: "Run Examples"
on:
push:
branches-ignore:
- "dependabot/**"
- "sourcery/**"
- "pre-commit-ci-update-config"
pull_request:
workflow_dispatch:
jobs:
create-example-list:
name: Create Example List
runs-on: ubuntu-latest
outputs:
example-list: ${{ steps.create-example-list.outputs.example-list }}
steps:
- name: Set example list output
id: create-example-list
uses: glotaran/pyglotaran-examples@main
with:
example_name: set example list
set_example_list: true
run-examples:
name: "Run Example: "
runs-on: ubuntu-latest
needs: [create-example-list]
strategy:
matrix:
example_name: ${{fromJson(needs.create-example-list.outputs.example-list)}}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install pyglotaran-extras
run: |
pip install wheel
pip install .
- name: ${{ matrix.example_name }}
id: example-run
uses: glotaran/pyglotaran-examples@main
with:
example_name: ${{ matrix.example_name }}
install_extras: false
- name: Upload Example Plots Artifact
uses: actions/upload-artifact@v3
with:
name: example-plots
path: ${{ steps.example-run.outputs.plots-path }}