File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed
actions/install_conda_pip Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 55 required : true
66 description : " Python version to use"
77 default : " 3.12"
8+ nnpdf-extras :
9+ required : true
10+ description : " Which extras to install"
11+ default : " [qed,tests]"
12+
813
914runs :
1015 using : " composite"
1924 - name : Install package with test extras
2025 shell : bash -l {0}
2126 run : |
22- pip install -e .[qed,tests]
27+ pip install -e .${{ inputs.nnpdf-extras }}
Original file line number Diff line number Diff line change 66 # https://keras.io/getting_started/faq/#how-can-i-obtain-reproducible-results-using-keras-during-development
77 PYTHONHASHSEED : " 0"
88 NETRC_FILE : ${{ secrets.NETRC_FILE }}
9- NNPDF_SSH_KEY : ${{ secrets.NNPDF_SSH_KEY }}
109
1110jobs :
1211 run_package_tests :
Original file line number Diff line number Diff line change 1+ name : Deploy docs
2+
3+ on :
4+ push :
5+ branches :
6+ - merge_workflows
7+
8+ env :
9+ NETRC_FILE : ${{ secrets.NETRC_FILE }}
10+ NNPDF_SSH_KEY : ${{ secrets.NNPDF_SSH_KEY }}
11+
12+ jobs :
13+ deploy_docs :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : ./.github/actions/install_conda_pip
18+ with :
19+ nnpdf-extras : " [qed, docs]"
20+ - name : Build sphinx documentation
21+ shell : bash -l {0}
22+ run : |
23+ cd doc/sphinx
24+ make html
25+ # - name: Upload documentation
26+ # shell: bash -l {0}
27+ # run: |
28+ # cd doc/sphinx
29+ # KEY=$( mktemp )
30+ # echo "$NNPDF_SSH_KEY" | base64 --decode > "$KEY"
31+ # scp -r -i "$KEY" -o StrictHostKeyChecking=no\
32+ # build/html/* \
33+ # dummy@packages.nnpdf.science:~/sphinx-docs/
You can’t perform that action at this time.
0 commit comments