Skip to content

using a venv with github action to render docstring example #378

Answered by DOH-FAA3303
DOH-FAA3303 asked this question in Q&A
Discussion options

You must be logged in to vote

i figured it out. I separated the quarto render step from the publish step, and I specifically activated the venv in the render step:

on:
  workflow_dispatch:
  push:
    branches: 
      - main

name: Render and Publish

jobs:
  build-deploy:
    runs-on: ubuntu-latest
    
    env:
      RENV_PATHS_ROOT: ~/.cache/R/renv
      
    steps:
      - name: Check out repository
        uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.10'
          cache: 'pip' # caching pip dependencies
      # - run: pip install -r requirements.txt
      - run: |
          python -m venv .venv
          source .venv/bin/ac…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DOH-FAA3303
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant