Skip to content

toqubo-plot

toqubo-plot #152

Workflow file for this run

name: toqubo-plot
on:
workflow_dispatch:
workflow_run:
workflows: ["toqubo-benchmark"]
types:
- completed
push:
branches: [master]
jobs:
plot:
if: ${{ !(github.event_name == 'push') || contains(github.event.head_commit.message, '[plot]') }}
name: Python ${{ matrix.python-version }} @ ${{ matrix.os }}/${{ matrix.arch }}/${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- python-version: '3.11'
os: ubuntu-latest
arch: x64
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Make Plots
run: |
make install-plot
make plot
- name: Save Plots
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "suporte@psr-inc.com"
git add ./data/*.pdf ./data/*.png
git commit -m "Save Benchmark Plots [actions]"
git push