-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from NSLS-II/doc-rel-notes-v0.4.0
Release notes for v0.4.0
- Loading branch information
Showing
6 changed files
with
75 additions
and
25 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 |
---|---|---|
|
@@ -3,12 +3,15 @@ name: Build Documentation | |
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build_docs: | ||
# pull requests are a duplicate of a branch push if they are from within | ||
# the same repo. Skip these | ||
# pull requests are a duplicate of a branch push if within the same repo. | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -34,7 +37,7 @@ jobs: | |
uses: supercharge/[email protected] | ||
|
||
- name: Start Sirepo Docker container | ||
uses: NSLS-II/start-sirepo-action@v1 | ||
uses: NSLS-II/start-sirepo-action@v2 | ||
with: | ||
docker-binary: docker | ||
|
||
|
@@ -54,13 +57,14 @@ jobs: | |
mamba-version: "*" | ||
channels: conda-forge | ||
|
||
- name: Install dependencies | ||
- name: Install documentation-building requirements | ||
run: | | ||
# For reference: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html. | ||
set -vxeo pipefail | ||
conda env list | ||
mamba install -c conda-forge shadow3 srwpy pandoc | ||
# mamba install -c conda-forge shadow3 srwpy pandoc | ||
mamba install -c conda-forge pandoc | ||
pip install --upgrade pip wheel | ||
pip install -v . | ||
pip install -r requirements-dev.txt | ||
|
@@ -76,7 +80,8 @@ jobs: | |
path: docs/build/html/ | ||
|
||
- name: Deploy documentation to nsls-ii.github.io | ||
if: github.repository_owner == 'NSLS-II' && github.ref_name == 'main' | ||
# if: github.repository_owner == 'NSLS-II' && github.ref_name == 'main' | ||
if: github.event_name == 'release' | ||
# We pin to the SHA, not the tag, for security reasons. | ||
# https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions | ||
uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3 | ||
|
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
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 |
---|---|---|
|
@@ -3,11 +3,15 @@ name: Unit Tests | |
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
# schedule: | ||
# - cron: '00 4 * * *' # daily at 4AM | ||
|
||
jobs: | ||
run_tests: | ||
# pull requests are a duplicate of a branch push if within the same repo. | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | ||
|
||
runs-on: ${{ matrix.host-os }} | ||
strategy: | ||
matrix: | ||
|
@@ -32,7 +36,7 @@ jobs: | |
uses: supercharge/[email protected] | ||
|
||
- name: Start Sirepo Docker container | ||
uses: NSLS-II/start-sirepo-action@v1 | ||
uses: NSLS-II/start-sirepo-action@v2 | ||
with: | ||
docker-binary: docker | ||
|
||
|
@@ -52,13 +56,13 @@ jobs: | |
mamba-version: "*" | ||
channels: conda-forge | ||
|
||
- name: Install dependencies | ||
- name: Install the package and its dependencies | ||
run: | | ||
# For reference: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html. | ||
set -vxeo pipefail | ||
conda env list | ||
mamba install -c conda-forge shadow3 srwpy | ||
# mamba install -c conda-forge shadow3 srwpy | ||
pip install --upgrade pip wheel | ||
pip install -v . | ||
pip install -r requirements-dev.txt | ||
|
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 |
---|---|---|
@@ -1,7 +1,40 @@ | ||
============ | ||
========================= | ||
Installation instructions | ||
========================= | ||
|
||
Installation | ||
============ | ||
------------ | ||
|
||
The package works with Python 3.8+ and can be installed from both PyPI and conda-forge. | ||
|
||
To install the package using the ``pip`` package manager, run the following command: | ||
|
||
.. code:: bash | ||
$ python3 -m pip install bloptools | ||
To install the package using the ``conda`` package manager, run the following command: | ||
|
||
.. code:: bash | ||
$ conda install -c conda-forge bloptools | ||
If you'd like to use the Sirepo backend and ``sirepo-bluesky`` ophyd objects, please | ||
follow the `Sirepo/Sirepo-Bluesky installation & configuration instructions | ||
<https://nsls-ii.github.io/sirepo-bluesky/installation.html>`_. | ||
|
||
|
||
Run tests | ||
--------- | ||
|
||
.. code:: bash | ||
$ pytest -vv -s -x --pdb | ||
Build documentation | ||
------------------- | ||
|
||
At the command line:: | ||
.. code:: bash | ||
$ pip install bloptools | ||
$ make -C docs/ html |
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
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