Skip to content

Run Many PyMop algorithm comparisons #22

Run Many PyMop algorithm comparisons

Run Many PyMop algorithm comparisons #22

name: Run Many PyMop algorithm comparisons
permissions:
contents: write
on:
workflow_dispatch:
inputs:
google_sheet_id:
description: 'ID of the Google Sheet containing repository links and where results will be appended. Id is located in the URL of the Google Sheet https://docs.google.com/spreadsheets/d/<ID>/edit. The sheet should add "mass-run-mop@mohas-filemap-cloud.iam.gserviceaccount.com" as an editor'
required: true
default: '1L7j3JowPmOdJFYYvbJQiKq4F8UzoFvxI8wWN9SPchrQ'
links_worksheetTitle:
description: 'Title of the tab containing the links. Default is "links". The first column should contain the links to the repositories. a maximum of 256 links can be added.'
required: false
default: 'links-1'
release_name:
description: 'Name of the release to be created.'
default: all-results-2024-05-18-morning
required: true
# repository_dispatch:
# types: [run-multiple-repos]
jobs:
fetch_data:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Dependencies
run: pip3 install pygsheets PyGithub
- name: Prepare matrix
id: set-matrix
run: python3 scripts/get_repo_links.py
env:
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
GOOGLE_SHEET_ID: ${{ github.event.inputs.google_sheet_id }}
LINKS_TAB_NAME: ${{github.event.inputs.links_worksheetTitle}}
run_jobs:
needs: fetch_data
uses: mohasarc/spec-mining/.github/workflows/run-single-algorithms.yml@main
with:
project-link: ${{ matrix.repo-link }}
release-name: ${{ github.event.inputs.release_name }}
secrets:
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
strategy:
fail-fast: false
matrix:
repo-link: ${{ fromJson(needs.fetch_data.outputs.matrix) }}