Skip to content

Commit

Permalink
Merge pull request #2718 from ReactionMechanismGenerator/Change_CI_to…
Browse files Browse the repository at this point in the history
…_Miniforge

Change CI to use Miniforge3 instead of Mambaforge
  • Loading branch information
JacksonBurns authored Oct 2, 2024
2 parents a2e1e60 + 3bb3015 commit d3f8605
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# 2023-07-17 - made it pass by default
# 2023-07-21 - upload the regression results summary as artifact (for use as a comment on PRs)
# 2023-07-31 - removed option to run from RMG-database with GitHub resuable workflows
# 2024-10-01 - deprecated Mambaforge with Miniforge3 for environment creation

name: Continuous Integration

Expand Down Expand Up @@ -62,11 +63,11 @@ jobs:
uses: actions/checkout@v4

# 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: environment.yml
miniforge-variant: Mambaforge
miniforge-variant: Miniforge3
miniforge-version: latest
python-version: 3.7
activate-environment: rmg_env
Expand Down Expand Up @@ -112,11 +113,11 @@ jobs:
uses: actions/checkout@v4

# 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: environment.yml
miniforge-variant: Mambaforge
miniforge-variant: Miniforge3
miniforge-version: latest
python-version: 3.7
activate-environment: rmg_env
Expand Down Expand Up @@ -218,16 +219,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
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
fetch-depth: 0

- name: Setup Mambaforge Python 3.7
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-variant: Miniforge3
miniforge-version: latest
python-version: 3.7
activate-environment: rmg_env
Expand Down

0 comments on commit d3f8605

Please sign in to comment.