Skip to content

Commit 756a9ee

Browse files
authored
Bump actions/cache from 4 to 5 (#846)
2 parents 94bb568 + 69df219 commit 756a9ee

8 files changed

Lines changed: 103 additions & 56 deletions

File tree

.github/labeler.yml

Lines changed: 64 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,104 @@
11
repo:
2-
- ./*
3-
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- './*'
5+
46
examples:
5-
- examples/**/*
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- 'examples/**/*'
610

711
tests:
8-
- arc/**/*Tests.py
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- 'arc/**/*Tests.py'
915

1016
'Module: Conformers':
11-
- arc/species/conformers.py
17+
- changed-files:
18+
- any-glob-to-any-file:
19+
- 'arc/species/conformers.py'
1220

1321
'Module: Mapping':
14-
- arc/mapping/*
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- 'arc/mapping/*'
1525

1626
'Module: Converter':
17-
- arc/species/converter.py
27+
- changed-files:
28+
- any-glob-to-any-file:
29+
- 'arc/species/converter.py'
1830

1931
'Module: Job':
20-
- arc/job/job.py
32+
- changed-files:
33+
- any-glob-to-any-file:
34+
- 'arc/job/job.py'
2135

2236
'Module: Local':
23-
- arc/job/local.py
37+
- changed-files:
38+
- any-glob-to-any-file:
39+
- 'arc/job/local.py'
2440

2541
'Module: Main':
26-
- arc/main.py
42+
- changed-files:
43+
- any-glob-to-any-file:
44+
- 'arc/main.py'
2745

2846
'Module: Parser':
29-
- arc/parser.py
47+
- changed-files:
48+
- any-glob-to-any-file:
49+
- 'arc/parser.py'
3050

3151
'Module: Plotter':
32-
- arc/plotter.py
52+
- changed-files:
53+
- any-glob-to-any-file:
54+
- 'arc/plotter.py'
3355

3456
'Module: Processor':
35-
- arc/processor.py
57+
- changed-files:
58+
- any-glob-to-any-file:
59+
- 'arc/processor.py'
3660

3761
'Module: Reaction':
38-
- arc/reaction.py
62+
- changed-files:
63+
- any-glob-to-any-file:
64+
- 'arc/reaction.py'
3965

4066
'Module: rmgdb':
41-
- arc/rmgdb.py
67+
- changed-files:
68+
- any-glob-to-any-file:
69+
- 'arc/rmgdb.py'
4270

4371
'Module: Scheduler':
44-
- arc/scheduler.py
72+
- changed-files:
73+
- any-glob-to-any-file:
74+
- 'arc/scheduler.py'
4575

4676
'Module: Species':
47-
- arc/species/species.py
77+
- changed-files:
78+
- any-glob-to-any-file:
79+
- 'arc/species/species.py'
4880

4981
'Module: SSH':
50-
- arc/job/ssh.py
82+
- changed-files:
83+
- any-glob-to-any-file:
84+
- 'arc/job/ssh.py'
5185

5286
'Module: trsh':
53-
- arc/job/trsh.py
87+
- changed-files:
88+
- any-glob-to-any-file:
89+
- 'arc/job/trsh.py'
5490

5591
'Module: Utils':
56-
- arc/job/utils/**/*
92+
- changed-files:
93+
- any-glob-to-any-file:
94+
- 'arc/job/utils/**/*'
5795

5896
'Module docs':
59-
- arc/docs/**/*
97+
- changed-files:
98+
- any-glob-to-any-file:
99+
- 'arc/docs/**/*'
60100

61101
'Module Functional':
62-
- functional/*
63-
102+
- changed-files:
103+
- any-glob-to-any-file:
104+
- 'functional/*'

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout ARC
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
with:
2323
path: ARC
2424

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v6
2828

2929
- name: Initialize CodeQL
3030
uses: github/codeql-action/init@v3

.github/workflows/docker_build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
push:
77
branches:
88
- main
9-
paths:
10-
- "Dockerfile"
11-
- ".github/workflows/docker_build.yml"
129
pull_request:
1310
branches:
1411
- main
@@ -18,6 +15,9 @@ on:
1815
types: [opened, synchronize, reopened, ready_for_review]
1916
#workflow_dispatch: # Add this line to enable manual trigger
2017

18+
env:
19+
BUILDKIT_PROGRESS: plain
20+
2121
jobs:
2222
build:
2323
runs-on: ubuntu-latest
@@ -34,16 +34,16 @@ jobs:
3434
swap-storage: true
3535

3636
- name: Checkout
37-
uses: actions/checkout@v5.0.0
37+
uses: actions/checkout@v6
3838

3939
- name: Set up Buildx
40-
uses: docker/setup-buildx-action@v3.11.1
40+
uses: docker/setup-buildx-action@v4.0.0
4141

4242
# ----- PR and non-main branch steps -----
4343
# For PRs: Build image but do not push and run smoke tests
4444
- name: Build Docker Image (No Push)
4545
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main')
46-
uses: docker/build-push-action@v6.18.0
46+
uses: docker/build-push-action@v7.0.0
4747
with:
4848
context: .
4949
file: ./Dockerfile
@@ -63,7 +63,7 @@ jobs:
6363
# For pushes to main: Build, run smoke tests, and push to Docker Hub
6464
- name: Build test stage (main)
6565
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
66-
uses: docker/build-push-action@v6.18.0
66+
uses: docker/build-push-action@v7.0.0
6767
with:
6868
context: .
6969
file: ./Dockerfile
@@ -87,7 +87,7 @@ jobs:
8787

8888
- name: Build final and push (main)
8989
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
90-
uses: docker/build-push-action@v6.18.0
90+
uses: docker/build-push-action@v7.0.0
9191
with:
9292
context: .
9393
file: ./Dockerfile

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
# ── clone ARC repo ───────────────────────────────────────────
1616
- name: Checkout ARC
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
with:
1919
repository: ReactionMechanismGenerator/ARC
2020
path: ARC

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/labeler@v2
14+
- uses: actions/labeler@v6
1515
with:
1616
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/update-cache.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ jobs:
1919
steps:
2020
# ────────── source repo ──────────
2121
- name: Checkout ARC
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323

2424
# ────────── AutoTST ──────────
2525
- name: Cache AutoTST
2626
id: cache-autotst
27-
uses: actions/cache@v4
27+
uses: actions/cache@v5
2828
with:
2929
path: AutoTST
3030
key: ${{ runner.os }}-autotst-main
3131
restore-keys: |
3232
${{ runner.os }}-autotst-
3333
- name: Checkout AutoTST
3434
if: steps.cache-autotst.outputs.cache-hit != 'true'
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v6
3636
with:
3737
repository: ReactionMechanismGenerator/AutoTST
3838
path: AutoTST
@@ -42,15 +42,15 @@ jobs:
4242
# ────────── TS‑GCN ──────────
4343
- name: Cache TS-GCN
4444
id: cache-tsgcn
45-
uses: actions/cache@v4
45+
uses: actions/cache@v5
4646
with:
4747
path: TS-GCN
4848
key: ${{ runner.os }}-tsgcn-main
4949
restore-keys: |
5050
${{ runner.os }}-tsgcn-
5151
- name: Checkout TS-GCN
5252
if: steps.cache-tsgcn.outputs.cache-hit != 'true'
53-
uses: actions/checkout@v4
53+
uses: actions/checkout@v6
5454
with:
5555
repository: ReactionMechanismGenerator/TS-GCN
5656
path: TS-GCN
@@ -60,15 +60,15 @@ jobs:
6060
# ────────── KinBot ──────────
6161
- name: Cache KinBot
6262
id: cache-kinbot
63-
uses: actions/cache@v4
63+
uses: actions/cache@v5
6464
with:
6565
path: KinBot
6666
key: ${{ runner.os }}-kinbot-2.0.6
6767
restore-keys: |
6868
${{ runner.os }}-kinbot-
6969
- name: Checkout KinBot 2.0.6
7070
if: steps.cache-kinbot.outputs.cache-hit != 'true'
71-
uses: actions/checkout@v4
71+
uses: actions/checkout@v6
7272
with:
7373
repository: zadorlab/KinBot
7474
path: KinBot

Dockerfile

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,31 @@ RUN wget -qO- https://install.julialang.org | sh -s -- --yes --default-channel 1
3535

3636
# Switch directory to Code and RMG clone
3737
WORKDIR /home/mambauser/Code
38-
RUN git clone --branch ${RMG_PY_BRANCH} https://github.com/ReactionMechanismGenerator/RMG-Py.git && \
39-
git clone --branch ${RMG_DATABASE_BRANCH} https://github.com/ReactionMechanismGenerator/RMG-database.git && \
40-
git clone --branch ${ARC_BRANCH} https://github.com/ReactionMechanismGenerator/ARC.git
41-
42-
# Create RMG-Py environment
43-
RUN micromamba create -y -n rmg_env -f /home/mambauser/Code/RMG-Py/environment.yml && \
44-
micromamba run -n rmg_env micromamba install -y -c conda-forge pyjuliacall conda && \
45-
micromamba clean --all --yes && \
46-
micromamba run -n rmg_env make -C /home/mambauser/Code/RMG-Py -j"$(nproc)" && \
47-
micromamba run -n rmg_env bash -c "\
38+
RUN git clone --depth 1 --branch ${RMG_PY_BRANCH} https://github.com/ReactionMechanismGenerator/RMG-Py.git && \
39+
git clone --depth 1 --branch ${RMG_DATABASE_BRANCH} https://github.com/ReactionMechanismGenerator/RMG-database.git && \
40+
git clone --depth 1 --branch ${ARC_BRANCH} https://github.com/ReactionMechanismGenerator/ARC.git
41+
42+
# Create RMG-Py environment (split into separate layers for GHA cache)
43+
# Pin python=3.9 to drastically reduce solver search space
44+
RUN micromamba create -y -v -n rmg_env python=3.9 -f /home/mambauser/Code/RMG-Py/environment.yml && \
45+
micromamba run -n rmg_env micromamba install -y -v -c conda-forge pyjuliacall conda && \
46+
micromamba clean --all --yes
47+
48+
RUN micromamba run -n rmg_env make -C /home/mambauser/Code/RMG-Py -j"$(nproc)"
49+
50+
RUN micromamba run -n rmg_env bash -c "\
4851
cd /home/mambauser/Code/RMG-Py && \
52+
export RMS_INSTALLER=continuous && \
53+
export RMS_BRANCH=for_rmg && \
4954
source install_rms.sh \
5055
"
5156

5257
WORKDIR /home/mambauser/Code/ARC
53-
RUN micromamba create -y -n arc_env -f environment.yml --channel-priority flexible && \
54-
micromamba install -y -n arc_env -c conda-forge pytest && \
55-
micromamba clean --all -f -y && \
56-
micromamba run -n arc_env bash -euxo pipefail -c \
58+
RUN micromamba create -y -v -n arc_env python=3.12 -f environment.yml && \
59+
micromamba install -y -v -n arc_env -c conda-forge pytest && \
60+
micromamba clean --all -f -y
61+
62+
RUN micromamba run -n arc_env bash -euxo pipefail -c \
5763
"make compile && bash ./devtools/install_pyrdl.sh" && \
5864
micromamba clean --all --yes
5965

0 commit comments

Comments
 (0)