From cc0ecdb86951008ad92ce84c06cae87400d82eb7 Mon Sep 17 00:00:00 2001 From: ssun30 Date: Wed, 2 Oct 2024 02:38:36 -0400 Subject: [PATCH] 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 --- .github/workflows/CI.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index abd4a04090..8aa8dcf6a9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,6 +15,7 @@ # # Changelog: # 2023-10 - Copied from RMG-Py, adapted for RMG-database +# 2024/10/02 Mambaforge is deprecated. Use Miniforge3 instead. name: Continuous Integration @@ -63,11 +64,11 @@ jobs: path: RMG-database # configures the mamba environment manager and builds the environment - - name: Setup Mambaforge Python 3.7 + - name: Setup Miniforge Python 3.7 uses: conda-incubator/setup-miniconda@v3 with: environment-file: RMG-Py/environment.yml - miniforge-variant: Mambaforge + miniforge-variant: Miniforge3 miniforge-version: latest python-version: 3.7 activate-environment: rmg_env @@ -152,16 +153,16 @@ jobs: - name : Find ID of Reference Results env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # this will search for the last successful execution of CI on main run: | - run_id=$(gh run list -R ReactionMechanismGenerator/RMG-Py --workflow="Continuous Integration" --branch main --limit 1 --json databaseId --jq '.[0].databaseId') + 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') echo "CI_RUN_ID=$run_id" >> $GITHUB_ENV - name: Retrieve Stable Regression Results if: ${{ env.REFERENCE_JOB == 'false' }} uses: actions/download-artifact@v4 with: - # this will search for the last successful execution of CI on main and download - # the stable regression results + # download stable regression results run-id: ${{ env.CI_RUN_ID }} repository: ReactionMechanismGenerator/RMG-Py github-token: ${{ secrets.GITHUB_TOKEN }}