Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 2 additions & 22 deletions .github/workflows/_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ on:
deploy_key:
required: false


jobs:
build_docs:
runs-on: ubuntu-latest
strategy:
fail-fast: false

defaults:
run:
Expand All @@ -28,19 +25,10 @@ jobs:
with:
fetch-depth: 0

- name: Install documentation-building requirements with apt/dpkg
run: |
set -vxeuo pipefail
wget --progress=dot:giga "https://github.com/jgm/pandoc/releases/download/3.1.6.1/pandoc-3.1.6.1-1-amd64.deb" -O /tmp/pandoc.deb
sudo dpkg -i /tmp/pandoc.deb
# conda install -c conda-forge -y pandoc
which pandoc
pandoc --version

- name: Install pixi and activate environment
uses: prefix-dev/setup-pixi@v0.8.14
uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
with:
pixi-version: v0.46.0
pixi-version: v0.60.0
environments: docs
cache: false
activate-environment: docs
Expand All @@ -51,21 +39,13 @@ jobs:
- name: Build Docs
run: pixi run build-docs

- name: Upload JupyterLite docs artifact
uses: actions/upload-artifact@v4
with:
name: jupyterlite-docs
path: docs/build/jupyter_execute
if-no-files-found: error

- name: Upload HTML docs artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.REPOSITORY_NAME }}-docs
path: docs/build/html/

- name: Deploy documentation to nsls-ii.github.io
# 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
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,25 @@ jobs:
activate-environment: ${{ matrix.python-version }}

- name: Run unit tests
run: pixi run unit-tests
run: |
if [ "${{ matrix.python-version }}" = "py313-cpu" ]; then
pixi run -e ${{ matrix.python-version }} pytest --cov=blop --cov-report=xml --cov-report=term src/blop/tests/unit
else
pixi run unit-tests
fi

- name: Run integration tests
run: pixi run integration-tests
run: |
if [ "${{ matrix.python-version }}" = "py313-cpu" ]; then
pixi run -e ${{ matrix.python-version }} pytest --cov=blop --cov-append --cov-report=xml --cov-report=term src/blop/tests/integration
else
pixi run integration-tests
fi

- name: Upload coverage to Codecov
if: matrix.python-version == 'py313-cpu'
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
with:
files: ./coverage.xml
fail_ci_if_error: false
verbose: true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Blop - Beamline Optimization Package


[![Testing](https://github.com/NSLS-II/blop/actions/workflows/ci.yml/badge.svg)](https://github.com/NSLS-II/blop/actions/workflows/ci.yml)
[![Testing](https://github.com/bluesky/blop/actions/workflows/ci.yml/badge.svg)](https://github.com/bluesky/blop/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/bluesky/blop/branch/main/graph/badge.svg)](https://codecov.io/gh/bluesky/blop)
[![PyPI](https://img.shields.io/pypi/v/blop.svg)](https://pypi.python.org/pypi/blop)
[![Conda](https://img.shields.io/conda/vn/conda-forge/blop.svg)](https://anaconda.org/conda-forge/blop)

Expand Down
Loading
Loading