Run Many PyMop DynaPyt Dylin comparisons #99
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Many PyMop DynaPyt Dylin 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' | |
| status_number: | |
| description: 'Status number of the experiment. 1 for 8 specs, 2 for 12 specs, 3 for 8+19 specs, 4 for 12+19 specs' | |
| required: true | |
| default: '1' | |
| libraries_enabled: | |
| description: 'Whether to run the with libraries enabled scripts. 1 for libraries enabled, 0 for libraries disabled.' | |
| required: true | |
| default: '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-pymop-dynapyt-dylin-comparison.yml@main | |
| with: | |
| project-link: ${{ matrix.repo-link }} | |
| status_number: ${{ github.event.inputs.status_number }} | |
| libraries_enabled: ${{ github.event.inputs.libraries_enabled }} | |
| 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) }} |