Skip to content

Commit cc0ecdb

Browse files
committed
Changes to CI to match RMG-Py
Uses Miniforge3 since Mambaforge is deprecated Will search for the latest successful execution of CI on RMG-Py/main for reference regression data
1 parent affd292 commit cc0ecdb

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/CI.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#
1616
# Changelog:
1717
# 2023-10 - Copied from RMG-Py, adapted for RMG-database
18+
# 2024/10/02 Mambaforge is deprecated. Use Miniforge3 instead.
1819

1920
name: Continuous Integration
2021

@@ -63,11 +64,11 @@ jobs:
6364
path: RMG-database
6465

6566
# configures the mamba environment manager and builds the environment
66-
- name: Setup Mambaforge Python 3.7
67+
- name: Setup Miniforge Python 3.7
6768
uses: conda-incubator/setup-miniconda@v3
6869
with:
6970
environment-file: RMG-Py/environment.yml
70-
miniforge-variant: Mambaforge
71+
miniforge-variant: Miniforge3
7172
miniforge-version: latest
7273
python-version: 3.7
7374
activate-environment: rmg_env
@@ -152,16 +153,16 @@ jobs:
152153
- name : Find ID of Reference Results
153154
env:
154155
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
156+
# this will search for the last successful execution of CI on main
155157
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')
157159
echo "CI_RUN_ID=$run_id" >> $GITHUB_ENV
158160
159161
- name: Retrieve Stable Regression Results
160162
if: ${{ env.REFERENCE_JOB == 'false' }}
161163
uses: actions/download-artifact@v4
162164
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
165166
run-id: ${{ env.CI_RUN_ID }}
166167
repository: ReactionMechanismGenerator/RMG-Py
167168
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)