9696 python-version : ${{ matrix.pyversion }}
9797 architecture : x64
9898 - name : Install deps
99- run : pip install numpy pandas seaborn scikit-learn toml
99+ run : pip install numpy pandas seaborn scikit-learn toml requests
100100 - run : |
101101 cp README.md package-python/README.md
102102 cp LICENSE package-python/LICENSE
@@ -132,7 +132,7 @@ jobs:
132132 python-version : ${{ matrix.pyversion }}
133133 architecture : arm64
134134 - name : Install deps
135- run : pip install numpy pandas seaborn scikit-learn toml
135+ run : pip install numpy pandas seaborn scikit-learn toml requests
136136 - run : |
137137 cp README.md package-python/README.md
138138 cp LICENSE package-python/LICENSE
@@ -174,10 +174,12 @@ jobs:
174174 r-version : ' release'
175175
176176 - uses : r-lib/actions/setup-pandoc@v2
177+
178+ - name : Install Python Requests
179+ run : pip install requests
177180
178181 - uses : r-lib/actions/setup-r-dependencies@v2
179182 with :
180- extra-packages : any::rcmdcheck, any::devtools
181183 working-directory : package-r
182184 use-public-rspm : true
183185 cache : true
@@ -194,14 +196,14 @@ jobs:
194196 # Run check on the built tarball
195197 tarball=$(ls perpetual_*.tar.gz)
196198 echo "Checking $tarball"
197- Rscript -e "rcmdcheck::rcmdcheck(path = '$tarball', args = c(' --as-cran', ' --no-tests', ' --no-manual', ' --no-vignettes'), error_on = 'error') "
199+ R CMD check --as-cran --no-tests --no-manual --no-vignettes "$tarball "
198200
199201 - name : Submit to CRAN
200202 if : github.event.release.prerelease == false
201203 run : |
202204 tarball=$(ls perpetual_*.tar.gz)
203205 echo "Submitting $tarball to CRAN"
204- Rscript -e "devtools:: submit_cran(pkg = ' $tarball') "
206+ python scripts/ submit_cran.py " $tarball"
205207
206208 - name : Upload Release Asset
207209 if : github.event_name == 'release'
0 commit comments