Skip to content

Commit

Permalink
Release 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pagrubel committed Apr 2, 2024
2 parents 8c435ef + 5acf885 commit 6db4ab5
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 53 deletions.
48 changes: 11 additions & 37 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,18 @@
# Based on https://github.com/actions/starter-workflows/blob/main/pages/static.yml
name: Publish docs
name: Build Docs

on:
workflow_dispatch: {}
push:
branches: [main]

# Needed for publishing to Github Pages
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true
branches: [main, develop]
pull_request:
types: [opened, synchronize, edited]
branches: [main, develop]

jobs:
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
docs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: BEE Install
run: |
sudo apt-get update
sudo apt-get install python3 python3-venv curl build-essential \
zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev \
libreadline-dev libffi-dev libbz2-dev libyaml-dev
curl -sSL https://install.python-poetry.org | python3 -
poetry update
poetry install
- name: Build Docs
run: |
poetry run make -C docs/sphinx html
- name: Upload
uses: actions/upload-pages-artifact@v1
with:
path: docs/sphinx/_build/html
- name: Publish
id: deployment
uses: actions/deploy-pages@v1
- uses: actions/checkout@v4
- name: Install BEE and Build Docs
run: ./ci/docs.sh
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# available on 20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install and Configure
run: |
. ./ci/env.sh
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Based on https://github.com/actions/starter-workflows/blob/main/pages/static.yml
name: Publish docs

on:
push:
branches: [main]

# Needed for publishing to Github Pages
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: BEE Install and Build Docs
run: |
./ci/docs.sh
- name: Upload
uses: actions/upload-pages-artifact@v1
with:
path: docs/sphinx/_build/html
- name: Publish
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion .github/workflows/pylama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: PyLama Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint
run: |
pip install pylama==8.4.1 pyflakes==3.0.1 pylint==2.15.9 pydocstyle==6.1.1 2>&1 >/dev/null
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# available on 20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install and Configure
run: |
. ./ci/env.sh
Expand Down
11 changes: 11 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,14 @@ Major features: adds the capability to include post- and pre-processing scripts
- Fix Checkpoint/Restart capability
- Add testing for Checkpoint/Restart
- Adds capability to reset the beeflow files (deletes all artifacts) especially useful for developers.

0.1.8

Features: Fixes sphinx version to enable publishing documentation, now includes
CI for testing documentation builds

- Update sphinx version, update actions and release docs (#812)
- Add separate action for testing docs
- Fix beeflow config new error


11 changes: 8 additions & 3 deletions RELEASE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ Verify all current changes in develop run correctly on nightly tests.
5. Once merged, on github web interface create a release and tag based on main branch
that matches the version in pyproject.toml
6. Follow step 2 but uncheck Allow specified actors to bypass and don't forget save
7. Finally, on the main branch, first run a ``poetry build`` and then a
``poetry publish``. The second command will ask for a username and password (You may need to add the --username --password options to ``poetry build``)
for PyPI.
7. Log into your PYPI account and get a token for hpc-beeflow.
8. Finally, on the command line: checkout the main branch and make sure you pull the latest verison

Then publish by:
``poetry build``

``poetry publish -u __token__ -p pypi-<long-token>``


Check the documentation at: `https://lanl.github.io/BEE/ <https://lanl.github.io/BEE/>`_
Also upgrade the pip version in your python or anaconda environment and check the version:
Expand Down
3 changes: 1 addition & 2 deletions beeflow/client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
from beeflow.common.db.bdb import connect_db
from beeflow.wf_manager.common import dep_manager

db_path = wf_utils.get_db_path()


class ComponentManager:
"""Component manager class."""
Expand Down Expand Up @@ -467,6 +465,7 @@ def stop(query='yes'):

def kill_active_workflows(active_states, workflow_list):
"""Kill workflows with active states."""
db_path = wf_utils.get_db_path()
db = connect_db(wfm_db, db_path)
success = True
for name, wf_id, state in workflow_list:
Expand Down
12 changes: 6 additions & 6 deletions beeflow/enhanced_client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions ci/docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
# Install BEE and build the docs in CI.
sudo apt-get update
sudo apt-get install python3 python3-venv curl build-essential \
zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev \
libreadline-dev libffi-dev libbz2-dev libyaml-dev
curl -sSL https://install.python-poetry.org | python3 -
poetry update
poetry install
poetry run make -C docs/sphinx html
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hpc-beeflow"
version = "0.1.7"
version = "0.1.8"
description = "A software package for containerizing HPC applications and managing job workflows"


Expand Down Expand Up @@ -90,7 +90,7 @@ pylint = "2.15.9"
pytest = "7.2.0"
pytest-mock = "3.3.1"
# This is commented out until we can figure out why it's causing `poetry update` to loop forever
sphinx = "^2.1"
sphinx = "^6"
sphinx-rtd-theme = "^1.0"
cwltool = "^3.0.20200324120055"

Expand Down

0 comments on commit 6db4ab5

Please sign in to comment.