File tree Expand file tree Collapse file tree 11 files changed +87
-53
lines changed Expand file tree Collapse file tree 11 files changed +87
-53
lines changed Original file line number Diff line number Diff line change 1
- # Based on https://github.com/actions/starter-workflows/blob/main/pages/static.yml
2
- name : Publish docs
1
+ name : Build Docs
3
2
4
3
on :
4
+ workflow_dispatch : {}
5
5
push :
6
- branches : [main]
7
-
8
- # Needed for publishing to Github Pages
9
- permissions :
10
- contents : read
11
- pages : write
12
- id-token : write
13
-
14
- concurrency :
15
- group : " pages"
16
- cancel-in-progress : true
6
+ branches : [main, develop]
7
+ pull_request :
8
+ types : [opened, synchronize, edited]
9
+ branches : [main, develop]
17
10
18
11
jobs :
19
- publish :
20
- environment :
21
- name : github-pages
22
- url : ${{ steps.deployment.outputs.page_url }}
12
+ docs :
13
+ name : Build Docs
23
14
runs-on : ubuntu-latest
24
15
steps :
25
- - uses : actions/checkout@v3
26
- - name : BEE Install
27
- run : |
28
- sudo apt-get update
29
- sudo apt-get install python3 python3-venv curl build-essential \
30
- zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev \
31
- libreadline-dev libffi-dev libbz2-dev libyaml-dev
32
- curl -sSL https://install.python-poetry.org | python3 -
33
- poetry update
34
- poetry install
35
- - name : Build Docs
36
- run : |
37
- poetry run make -C docs/sphinx html
38
- - name : Upload
39
- uses : actions/upload-pages-artifact@v1
40
- with :
41
- path : docs/sphinx/_build/html
42
- - name : Publish
43
- id : deployment
44
- uses : actions/deploy-pages@v1
16
+ - uses : actions/checkout@v4
17
+ - name : Install BEE and Build Docs
18
+ run : ./ci/docs.sh
Original file line number Diff line number Diff line change 25
25
# available on 20.04
26
26
runs-on : ubuntu-22.04
27
27
steps :
28
- - uses : actions/checkout@v3
28
+ - uses : actions/checkout@v4
29
29
- name : Install and Configure
30
30
run : |
31
31
. ./ci/env.sh
Original file line number Diff line number Diff line change
1
+ # Based on https://github.com/actions/starter-workflows/blob/main/pages/static.yml
2
+ name : Publish docs
3
+
4
+ on :
5
+ push :
6
+ branches : [main]
7
+
8
+ # Needed for publishing to Github Pages
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ concurrency :
15
+ group : " pages"
16
+ cancel-in-progress : true
17
+
18
+ jobs :
19
+ publish :
20
+ environment :
21
+ name : github-pages
22
+ url : ${{ steps.deployment.outputs.page_url }}
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+ - name : BEE Install and Build Docs
27
+ run : |
28
+ ./ci/docs.sh
29
+ - name : Upload
30
+ uses : actions/upload-pages-artifact@v1
31
+ with :
32
+ path : docs/sphinx/_build/html
33
+ - name : Publish
34
+ id : deployment
35
+ uses : actions/deploy-pages@v1
Original file line number Diff line number Diff line change 15
15
name : PyLama Lint
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
19
19
- name : Lint
20
20
run : |
21
21
pip install pylama==8.4.1 pyflakes==3.0.1 pylint==2.15.9 pydocstyle==6.1.1 2>&1 >/dev/null
Original file line number Diff line number Diff line change 23
23
# available on 20.04
24
24
runs-on : ubuntu-22.04
25
25
steps :
26
- - uses : actions/checkout@v3
26
+ - uses : actions/checkout@v4
27
27
- name : Install and Configure
28
28
run : |
29
29
. ./ci/env.sh
Original file line number Diff line number Diff line change @@ -55,3 +55,14 @@ Major features: adds the capability to include post- and pre-processing scripts
55
55
- Fix Checkpoint/Restart capability
56
56
- Add testing for Checkpoint/Restart
57
57
- Adds capability to reset the beeflow files (deletes all artifacts) especially useful for developers.
58
+
59
+ 0.1.8
60
+
61
+ Features: Fixes sphinx version to enable publishing documentation, now includes
62
+ CI for testing documentation builds
63
+
64
+ - Update sphinx version, update actions and release docs (#812 )
65
+ - Add separate action for testing docs
66
+ - Fix beeflow config new error
67
+
68
+
Original file line number Diff line number Diff line change @@ -18,9 +18,14 @@ Verify all current changes in develop run correctly on nightly tests.
18
18
5. Once merged, on github web interface create a release and tag based on main branch
19
19
that matches the version in pyproject.toml
20
20
6. Follow step 2 but uncheck Allow specified actors to bypass and don't forget save
21
- 7. Finally, on the main branch, first run a ``poetry build `` and then a
22
- ``poetry publish ``. The second command will ask for a username and password (You may need to add the --username --password options to ``poetry build ``)
23
- for PyPI.
21
+ 7. Log into your PYPI account and get a token for hpc-beeflow.
22
+ 8. Finally, on the command line: checkout the main branch and make sure you pull the latest verison
23
+
24
+ Then publish by:
25
+ ``poetry build ``
26
+
27
+ ``poetry publish -u __token__ -p pypi-<long-token> ``
28
+
24
29
25
30
Check the documentation at: `https://lanl.github.io/BEE/ <https://lanl.github.io/BEE/ >`_
26
31
Also upgrade the pip version in your python or anaconda environment and check the version:
Original file line number Diff line number Diff line change 30
30
from beeflow .common .db .bdb import connect_db
31
31
from beeflow .wf_manager .common import dep_manager
32
32
33
- db_path = wf_utils .get_db_path ()
34
-
35
33
36
34
class ComponentManager :
37
35
"""Component manager class."""
@@ -467,6 +465,7 @@ def stop(query='yes'):
467
465
468
466
def kill_active_workflows (active_states , workflow_list ):
469
467
"""Kill workflows with active states."""
468
+ db_path = wf_utils .get_db_path ()
470
469
db = connect_db (wfm_db , db_path )
471
470
success = True
472
471
for name , wf_id , state in workflow_list :
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ # Install BEE and build the docs in CI.
3
+ sudo apt-get update
4
+ sudo apt-get install python3 python3-venv curl build-essential \
5
+ zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev \
6
+ libreadline-dev libffi-dev libbz2-dev libyaml-dev
7
+ curl -sSL https://install.python-poetry.org | python3 -
8
+ poetry update
9
+ poetry install
10
+ poetry run make -C docs/sphinx html
You can’t perform that action at this time.
0 commit comments