|
64 | 64 |
|
65 | 65 | # configures the mamba environment manager and builds the environment |
66 | 66 | - name: Setup Mambaforge Python 3.7 |
67 | | - uses: conda-incubator/setup-miniconda@v2 |
| 67 | + uses: conda-incubator/setup-miniconda@v3 |
68 | 68 | with: |
69 | 69 | environment-file: RMG-Py/environment.yml |
70 | 70 | miniforge-variant: Mambaforge |
@@ -149,23 +149,24 @@ jobs: |
149 | 149 | run: mkdir stable_regression_results |
150 | 150 |
|
151 | 151 | # Retrieve Stable Results for reference |
152 | | - # Will need to use this -> https://github.com/dawidd6/action-download-artifact |
| 152 | + - name : Find ID of Reference Results |
| 153 | + env: |
| 154 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 155 | + run: | |
| 156 | + run_id=$(gh run list -R ReactionMechanismGenerator/RMG-Py --workflow="Continuous Integration" --branch main --limit 1 --json databaseId --jq '.[0].databaseId') |
| 157 | + echo "CI_RUN_ID=$run_id" >> $GITHUB_ENV |
| 158 | +
|
153 | 159 | - name: Retrieve Stable Regression Results |
154 | 160 | if: ${{ env.REFERENCE_JOB == 'false' }} |
155 | | - uses: dsnopek/action-download-artifact@91dda23aa09c68860977dd0ed11d93c0ed3795e7 # see https://github.com/ReactionMechanismGenerator/RMG-Py/pull/2459#issuecomment-1582850815 |
| 161 | + uses: actions/download-artifact@v4 |
156 | 162 | with: |
157 | 163 | # this will search for the last successful execution of CI on main and download |
158 | 164 | # the stable regression results |
159 | | - workflow: CI.yml |
160 | | - workflow_conclusion: success |
161 | | - repo: ReactionMechanismGenerator/RMG-Py |
162 | | - branch: main |
| 165 | + run-id: ${{ env.CI_RUN_ID }} |
| 166 | + repository: ReactionMechanismGenerator/RMG-Py |
| 167 | + github-token: ${{ secrets.GH_PAT }} |
163 | 168 | name: stable_regression_results |
164 | | - path: RMG-Py/stable_regression_results |
165 | | - search_artifacts: true # retrieves the last run result, either scheduled daily or on push to main |
166 | | - ensure_latest: true # ensures that the latest run is retrieved |
167 | | - # should result in a set of folders inside stable_regression_results |
168 | | - # each of which has the stable result for that example/test |
| 169 | + path: stable_regression_results |
169 | 170 |
|
170 | 171 | # Regression Testing - Actual Comparisons |
171 | 172 | - name: Regression Tests - Compare to Baseline |
|
0 commit comments