Skip to content

Commit

Permalink
revise check command and install qpdf
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Aug 1, 2024
1 parent 4681640 commit 925277b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
^.*\.pt$
^doc$
^Meta$
^Dockerfile$
^\.devcontainer
^\.vscode
16 changes: 8 additions & 8 deletions .github/workflows/release_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ jobs:
- name: Run R CMD check
run: |
digest=$(ls /tmp/digests)
# Build the package
docker run --rm -v $(pwd):/workspace -w /workspace ${{ env.DOCKER_IMAGE }}@sha256:$digest R CMD build .
# Extract the name of the generated tar.gz file
package_file=$(ls *.tar.gz)
# Run package checks on the tar.gz file
docker run --rm -v $(pwd):/workspace -w /workspace ${{ env.DOCKER_IMAGE }}@sha256:$digest R CMD check --no-manual --as-cran $package_file
# Run package checks
docker run --rm \
-e _R_CHECK_FORCE_SUGGESTS_=false \
-e _R_CHECK_CRAN_INCOMING_=false \
-v $(pwd):/workspace -w /workspace \
${{ env.DOCKER_IMAGE }}@sha256:$digest Rscript -e \
"install.packages('rcmdcheck');rcmdcheck::rcmdcheck('.', args=c('--no-manual', '--as-cran'), \
build_args = '--no-manual', error_on = 'warning')"
merge:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ COPY --from=build /usr/local/lib/R/library /usr/local/lib/R/library
ENV RETICULATE_PYTHON=/usr/bin/python3
# runtime dependanceis
RUN apt-get -y update && apt-get install -y \
qpdf \
default-jre \
default-jdk \
libssl3 \
Expand Down

0 comments on commit 925277b

Please sign in to comment.