-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install python for updating switcher file
- Loading branch information
Showing
1 changed file
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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: | | ||
|