Skip to content

Commit

Permalink
Spooky cleaning 🎃 2023 (#61)
Browse files Browse the repository at this point in the history
* Spooky cleaning 🎃 2023

* Update TensorFlow
  • Loading branch information
juliasilge authored Oct 31, 2023
1 parent 42549d6 commit 29fd3ff
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 24 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,15 @@ jobs:
shell: Rscript {0}

- name: Install Miniconda
run: |
reticulate::install_miniconda()
# conda can fail at downgrading python, so we specify python version in advance
env:
RETICULATE_MINICONDA_PYTHON_VERSION: "3.7"
run: reticulate::install_miniconda() # creates r-reticulate conda env by default
shell: Rscript {0}

- name: Find Miniconda on macOS
if: runner.os == 'macOS'
run: echo "options(reticulate.conda_binary = reticulate:::miniconda_conda())" >> .Rprofile

- name: Install TensorFlow
run: |
reticulate::conda_create('r-reticulate', packages = c('python==3.6.9'))
tensorflow::install_tensorflow(version='2.4.0')
tensorflow::install_tensorflow(version='2.7', conda_python_version = NULL)
shell: Rscript {0}

- uses: r-lib/actions/check-r-package@v2
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3

Expand All @@ -38,14 +40,15 @@ jobs:
shell: Rscript {0}

- name: Install Miniconda
run: |
reticulate::install_miniconda()
# conda can fail at downgrading python, so we specify python version in advance
env:
RETICULATE_MINICONDA_PYTHON_VERSION: "3.7"
run: reticulate::install_miniconda() # creates r-reticulate conda env by default
shell: Rscript {0}

- name: Install TensorFlow
run: |
reticulate::conda_create('r-reticulate', packages = c('python==3.6.9'))
tensorflow::install_tensorflow(version='2.4.0')
tensorflow::install_tensorflow(version='2.7', conda_python_version = NULL)
shell: Rscript {0}

- name: Build site
Expand All @@ -54,7 +57,7 @@ jobs:

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected].4
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
Expand Down
34 changes: 25 additions & 9 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,36 @@ jobs:
shell: Rscript {0}

- name: Install Miniconda
run: |
reticulate::install_miniconda()
# conda can fail at downgrading python, so we specify python version in advance
env:
RETICULATE_MINICONDA_PYTHON_VERSION: "3.7"
run: reticulate::install_miniconda() # creates r-reticulate conda env by default
shell: Rscript {0}

- name: Find Miniconda on macOS
if: runner.os == 'macOS'
run: echo "options(reticulate.conda_binary = reticulate:::miniconda_conda())" >> .Rprofile

- name: Install TensorFlow
run: |
reticulate::conda_create('r-reticulate', packages = c('python==3.6.9'))
tensorflow::install_tensorflow(version='2.4.0')
tensorflow::install_tensorflow(version='2.7', conda_python_version = NULL)
shell: Rscript {0}

- name: Test coverage
run: covr::codecov(quiet = FALSE)
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
shell: Rscript {0}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2022
YEAR: 2023
COPYRIGHT HOLDER: bundle authors
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2022 bundle authors
Copyright (c) 2023 bundle authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 29fd3ff

Please sign in to comment.