@@ -10,7 +10,7 @@ name: conda
1010
1111on :
1212 push :
13- branches : [ "main" ]
13+ branches : [ "main", "devel" ]
1414 pull_request :
1515 types :
1616 - opened
4545 bash Miniforge3.sh -b -p "${HOME}/conda"
4646 echo "^Miniforge3\.sh$" >> .Rbuildignore
4747
48- - name : conda env pinned
49- run : |
50- source "${HOME}/conda/etc/profile.d/conda.sh"
51- conda config --add channels conda-forge
52- conda config --set channel_priority strict
53-
54- # make env one above WORKDIR
55- conda env create -p ../env --file requirements-pinned.yaml
56-
5748 - name : conda env unpinned
5849 run : |
5950 source "${HOME}/conda/etc/profile.d/conda.sh"
@@ -76,23 +67,40 @@ jobs:
7667 - name : Check, install & load library
7768 run : |
7869 source "${HOME}/conda/etc/profile.d/conda.sh"
79- conda activate ../env
70+ conda activate ../env-unpinned
8071
8172 # create tmp dir for build and check
8273 cd .. && mkdir tmp && cd tmp
8374
8475 # build, check
85- R CMD build --no-build-vignettes --no-manual ../carnation
86- R CMD check --as-cran --no-manual --no-vignettes carnation_${VERSION}.tar.gz
76+ time R CMD build --no-manual ../carnation
77+ time R CMD check --no-manual --no-vignettes --timings --as-cran carnation_${VERSION}.tar.gz
8778
8879 mv carnation_${VERSION}.tar.gz ${WORKDIR}/carnation.tar.gz
80+ tar cvf rcmdcheck.tar.gz carnation.Rcheck
81+ mv rcmdcheck.tar.gz ${WORKDIR}/rcmdcheck.tar.gz
8982
9083 - name : env tarball
9184 uses : actions/upload-artifact@v4
9285 with :
9386 name : carnation-bundle
9487 path : carnation.tar.gz
9588
89+ - name : R CMD check log
90+ uses : actions/upload-artifact@v4
91+ with :
92+ name : carnation-rcmdcheck
93+ path : rcmdcheck.tar.gz
94+
95+ - name : conda env pinned
96+ run : |
97+ source "${HOME}/conda/etc/profile.d/conda.sh"
98+ conda config --add channels conda-forge
99+ conda config --set channel_priority strict
100+
101+ # make env one above WORKDIR
102+ conda env create -p ../env --file requirements-pinned.yaml
103+
96104 - name : remotes install
97105 run : |
98106 source "${HOME}/conda/etc/profile.d/conda.sh"
@@ -103,3 +111,5 @@ jobs:
103111
104112
105113
114+
115+
0 commit comments