Skip to content

Commit ee667a5

Browse files
committed
separate docs from conda package
1 parent 177cb02 commit ee667a5

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.github/actions/install_conda_pip/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ inputs:
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

914
runs:
1015
using: "composite"
@@ -19,4 +24,4 @@ runs:
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 }}

.github/workflows/all_tests_nnpdf.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ env:
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

1110
jobs:
1211
run_package_tests:

.github/workflows/upload_docs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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/

0 commit comments

Comments
 (0)