8000 Feature request: how to use github actions with reticulate · Issue #999 · rstudio/reticulate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature request: how to use github actions with reticulate #999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
njtierney opened this issue Apr 30, 2021 · 2 comments
Open

Feature request: how to use github actions with reticulate #999

njtierney opened this issue Apr 30, 2021 · 2 comments

Comments

@njtierney
Copy link

The current vignette, Using reticulate in an R Package Provides a section on how to install python packages in Travis.

Would it be possible to add recommended ways on installing through github actions? Despite my best efforts it still seems that I cannot install Python packages properly for greta and some official guidance on the best way to do this would be really helpful!

@dfalbel
Copy link
Member
dfalbel commented Apr 30, 2021

I agree adding docs would be great! FWIW: this has been working for Keras and other TF related packages.

      - name: Install Miniconda
        run: |
          Rscript -e "remotes::install_github('rstudio/reticulate')"
          Rscript -e "reticulate::install_miniconda()"
      - if: runner.os == 'macOS'
        run: echo "options(reticulate.conda_binary = reticulate:::miniconda_conda())" >> .Rprofile
      - name: Install TensorFlow
        run: |
          Rscript -e "reticulate::conda_create('r-reticulate', packages = c('python==3.7', 'numpy==1.19'))"
          Rscript -e "remotes::install_local()"
          Rscript -e "keras::install_keras(tensorflow = Sys.getenv('TF_VERSION'), extra_packages = c('IPython', 'requests', 'certifi', 'urllib3'))"

https://github.com/rstudio/keras/blob/67b3f185315b49644ef6bd7ef26b14aafb2c3bea/.github/workflows/main.yaml#L46-L56

@njtierney
Copy link
Author

Thanks so much for this, @dfalbel - this appears to have been the missing link in our CI github actions journey!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0