Skip to content

Commit

Permalink
Changes to CI to match RMG-Py
Browse files Browse the repository at this point in the history
Uses Miniforge3 since Mambaforge is deprecated
Will search for the latest successful execution
of CI on RMG-Py/main for reference regression data
  • Loading branch information
ssun30 committed Oct 2, 2024
1 parent affd292 commit cc0ecdb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit cc0ecdb

Please sign in to comment.