From 78551521755fd7ce02333817ad185dca6483467f Mon Sep 17 00:00:00 2001 From: rettigl Date: Thu, 24 Oct 2024 22:49:49 +0200 Subject: [PATCH] install python for updating switcher file --- .github/workflows/documentation.yml | 42 ++++++++++++++++++----------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 0ce4f59f..082eca61 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -48,23 +48,23 @@ jobs: sudo dpkg -i pandoc-3.1.8-1-amd64.deb # rm because hextof_workflow notebook can not run outside maxwell - - name: copy tutorial files to docs - run: | - cp -r $GITHUB_WORKSPACE/tutorial $GITHUB_WORKSPACE/docs/ - cp -r $GITHUB_WORKSPACE/sed/config $GITHUB_WORKSPACE/docs/sed - rm $GITHUB_WORKSPACE/docs/tutorial/5_sxp_workflow.ipynb +# - name: copy tutorial files to docs +# run: | +# cp -r $GITHUB_WORKSPACE/tutorial $GITHUB_WORKSPACE/docs/ +# cp -r $GITHUB_WORKSPACE/sed/config $GITHUB_WORKSPACE/docs/sed +# rm $GITHUB_WORKSPACE/docs/tutorial/5_sxp_workflow.ipynb - - name: download RAW data - # if: steps.cache-primes.outputs.cache-hit != 'true' - run: | - cd $GITHUB_WORKSPACE/docs - poetry run python scripts/download_data.py +# - name: download RAW data +# # if: steps.cache-primes.outputs.cache-hit != 'true' +# run: | +# cd $GITHUB_WORKSPACE/docs +# poetry run python scripts/download_data.py - - name: build Flash parquet files - run: | - cd $GITHUB_WORKSPACE/docs - poetry run python scripts/build_flash_parquets.py +# - name: build Flash parquet files +# run: | +# cd $GITHUB_WORKSPACE/docs +# poetry run python scripts/build_flash_parquets.py # to be removed later. This theme doesn't support <3.9 python and our lock file contains 3.8 - name: install pydata-sphinx-theme @@ -92,6 +92,16 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} path: 'docs-repo' + - name: Set up Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install json + - name: Setup SSH uses: webfactory/ssh-agent@v0.9.0 with: @@ -117,8 +127,8 @@ jobs: - name: Update switcher.json run: | - echo "poetry run python docs-repo/sed/update_switcher.py docs-repo/sed/switcher.json $GITHUB_REF" - poetry run python docs-repo/sed/update_switcher.py docs-repo/sed/switcher.json $GITHUB_REF + echo "python docs-repo/sed/update_switcher.py docs-repo/sed/switcher.json $GITHUB_REF" + python docs-repo/sed/update_switcher.py docs-repo/sed/switcher.json $GITHUB_REF - name: Copy documentation to the right version folder run: |