Skip to content

Commit ac6a9c6

Browse files
committed
rearranging steps
1 parent 1373ce7 commit ac6a9c6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ jobs:
5858
with:
5959
python-version: '3.11'
6060

61-
- name: Install Keras backend
62-
# The keras3 package is installed by the previous step (as a dependency)
63-
# This step installs the required Python libraries (e.g., tensorflow).
64-
run: keras3::install_keras(envname = "r-reticulate")
65-
shell: Rscript {0}
66-
67-
- name: Export reticulate Python
68-
run: |
69-
echo "RETICULATE_PYTHON=$(Rscript -e 'cat(reticulate::py_exe())')" >> $GITHUB_ENV
70-
7161
- name: Install system dependencies for vignettes (Linux)
7262
if: runner.os == 'Linux'
7363
run: |
@@ -87,6 +77,16 @@ jobs:
8777
extra-packages: any::rcmdcheck
8878
needs: check
8979

80+
- name: Install Keras backend
81+
# The keras3 package is installed by the previous step (as a dependency)
82+
# This step installs the required Python libraries (e.g., tensorflow).
83+
run: keras3::install_keras(envname = "r-reticulate")
84+
shell: Rscript {0}
85+
86+
- name: Export reticulate Python
87+
run: |
88+
echo "RETICULATE_PYTHON=$(Rscript -e 'cat(reticulate::py_exe())')" >> $GITHUB_ENV
89+
9090
- uses: r-lib/actions/check-r-package@v2
9191
with:
9292
upload-snapshots: true

0 commit comments

Comments
 (0)