|
15 | 15 | # |
16 | 16 | # Changelog: |
17 | 17 | # 2023-10 - Copied from RMG-Py, adapted for RMG-database |
| 18 | +# 2024/10/02 Mambaforge is deprecated. Use Miniforge3 instead. |
18 | 19 |
|
19 | 20 | name: Continuous Integration |
20 | 21 |
|
@@ -63,11 +64,11 @@ jobs: |
63 | 64 | path: RMG-database |
64 | 65 |
|
65 | 66 | # configures the mamba environment manager and builds the environment |
66 | | - - name: Setup Mambaforge Python 3.7 |
| 67 | + - name: Setup Miniforge Python 3.7 |
67 | 68 | uses: conda-incubator/setup-miniconda@v3 |
68 | 69 | with: |
69 | 70 | environment-file: RMG-Py/environment.yml |
70 | | - miniforge-variant: Mambaforge |
| 71 | + miniforge-variant: Miniforge3 |
71 | 72 | miniforge-version: latest |
72 | 73 | python-version: 3.7 |
73 | 74 | activate-environment: rmg_env |
@@ -152,16 +153,16 @@ jobs: |
152 | 153 | - name : Find ID of Reference Results |
153 | 154 | env: |
154 | 155 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 156 | + # this will search for the last successful execution of CI on main |
155 | 157 | run: | |
156 | | - run_id=$(gh run list -R ReactionMechanismGenerator/RMG-Py --workflow="Continuous Integration" --branch main --limit 1 --json databaseId --jq '.[0].databaseId') |
| 158 | + run_id=$(gh run list -R ReactionMechanismGenerator/RMG-Py --workflow="Continuous Integration" --branch main --limit 15 --json databaseId,conclusion --jq 'map(select(.conclusion == "success")) | .[0].databaseId') |
157 | 159 | echo "CI_RUN_ID=$run_id" >> $GITHUB_ENV |
158 | 160 |
|
159 | 161 | - name: Retrieve Stable Regression Results |
160 | 162 | if: ${{ env.REFERENCE_JOB == 'false' }} |
161 | 163 | uses: actions/download-artifact@v4 |
162 | 164 | with: |
163 | | - # this will search for the last successful execution of CI on main and download |
164 | | - # the stable regression results |
| 165 | + # download stable regression results |
165 | 166 | run-id: ${{ env.CI_RUN_ID }} |
166 | 167 | repository: ReactionMechanismGenerator/RMG-Py |
167 | 168 | github-token: ${{ secrets.GITHUB_TOKEN }} |
|
0 commit comments