Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
978e11b
[CI] fix label bot reporting already-present labels as newly added
MridulS May 21, 2026
f539f73
add FastLookupTableWorkflow based on chopper_cascade
nvaytet May 18, 2026
8bb9cba
bump scippneutron version
nvaytet May 18, 2026
6ee01b7
update pixi lock file
nvaytet May 18, 2026
8d177ff
add missing types in init
nvaytet May 18, 2026
13453c9
add notebook that uses new workflow
nvaytet May 18, 2026
83c302a
lint
nvaytet May 18, 2026
ea5a8d9
remove old comments and give function a better name
nvaytet May 18, 2026
a023355
SourcePulse -> SourceBounds
nvaytet May 18, 2026
7b2ef7d
add new polygon intersection function
nvaytet May 19, 2026
e2a7e56
fix polygons intersection for vertical edges
nvaytet May 20, 2026
8f361ba
check for 2 leftmost and rightmost x coordinates instead of adding ve…
nvaytet May 20, 2026
f3b0ff7
update comment
nvaytet May 21, 2026
20a661e
use one workflow name and an input argument
nvaytet May 21, 2026
0424e66
update tests and a notebook
nvaytet May 21, 2026
7ad85a6
Unify docs GH workflow
jl-wynen May 22, 2026
ed7948a
Add builder arg to docs commands
jl-wynen May 22, 2026
92cfe5a
Run doctests and optionally linkcheck in CI
jl-wynen May 22, 2026
4fd5ace
Allow write contents permission for docs
jl-wynen May 22, 2026
6424270
Run tests when docs workflow changes
jl-wynen May 22, 2026
dbda04f
Fix default ref
jl-wynen May 22, 2026
27a8bea
Remove bad pip install steps
jl-wynen May 22, 2026
4379afc
Fix docs artifact name
jl-wynen May 26, 2026
71df840
ci: fix docs deploy
jokasimr May 27, 2026
2fdba17
Update .github/workflows/docs.yml
jokasimr May 27, 2026
7a5bfa7
ci: add lower and upper bound nightlies
jokasimr May 28, 2026
f5e9ca5
Update .github/workflows/nightly.yml
jokasimr May 28, 2026
6ee495e
fix
jokasimr May 28, 2026
b5d1c70
More efficient nightly environment setup.
YooSunYoung May 28, 2026
797959b
Revert "[CI] fix label bot reporting already-present labels as newly …
YooSunYoung May 28, 2026
6c929c2
Remove commenting related steps.
YooSunYoung May 28, 2026
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
38 changes: 17 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- 'pixi.lock'
- 'pixi.toml'
- '.github/workflows/ci.yml'
- '.github/workflows/docs.yml'
- '.pre-commit-config.yaml'
- '.python-version'
essimaging:
Expand All @@ -44,6 +45,7 @@ jobs:
- 'pixi.lock'
- 'pixi.toml'
- '.github/workflows/ci.yml'
- '.github/workflows/docs.yml'
- '.pre-commit-config.yaml'
- '.python-version'
essnmx:
Expand All @@ -53,6 +55,7 @@ jobs:
- 'pixi.lock'
- 'pixi.toml'
- '.github/workflows/ci.yml'
- '.github/workflows/docs.yml'
- '.pre-commit-config.yaml'
- '.python-version'
essreflectometry:
Expand All @@ -62,6 +65,7 @@ jobs:
- 'pixi.lock'
- 'pixi.toml'
- '.github/workflows/ci.yml'
- '.github/workflows/docs.yml'
- '.pre-commit-config.yaml'
- '.python-version'
essdiffraction:
Expand All @@ -71,6 +75,7 @@ jobs:
- 'pixi.lock'
- 'pixi.toml'
- '.github/workflows/ci.yml'
- '.github/workflows/docs.yml'
- '.pre-commit-config.yaml'
- '.python-version'
esssans:
Expand All @@ -80,6 +85,7 @@ jobs:
- 'pixi.lock'
- 'pixi.toml'
- '.github/workflows/ci.yml'
- '.github/workflows/docs.yml'
- '.pre-commit-config.yaml'
- '.python-version'
essspectroscopy:
Expand All @@ -89,6 +95,7 @@ jobs:
- 'pixi.lock'
- 'pixi.toml'
- '.github/workflows/ci.yml'
- '.github/workflows/docs.yml'
- '.pre-commit-config.yaml'
- '.python-version'

Expand All @@ -108,7 +115,7 @@ jobs:

test:
name: Test ${{ matrix.package }}
needs: [changes, formatting]
needs: [ changes, formatting ]
if: needs.changes.outputs.packages != '[]'
strategy:
fail-fast: false
Expand All @@ -129,34 +136,23 @@ jobs:

docs:
name: Docs ${{ matrix.package }}
needs: [changes, test]
needs: [ changes, test ]
if: needs.changes.outputs.packages != '[]'
strategy:
fail-fast: false
matrix:
package: ${{ fromJSON(needs.changes.outputs.packages) }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: prefix-dev/setup-pixi@v0.9.4
with:
pixi-version: v0.68.0
frozen: true
environments: docs-${{ matrix.package }}
- name: Build docs
run: pixi run docs-${{ matrix.package }}
- uses: actions/upload-artifact@v7
id: artifact-upload-step
with:
name: docs-${{ matrix.package }}
path: packages/${{ matrix.package }}/html
- run: echo "::notice::https://remote-unzip.scipp.deno.net/${{ github.repository }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}"
permissions:
contents: write
uses: ./.github/workflows/docs.yml
with:
package: ${{ matrix.package }}
publish: false
linkcheck: false

report:
name: Report Job Status
needs: [changes, formatting, test, docs]
needs: [ changes, formatting, test, docs ]
if: always() # Should always run regardless of the state of the needs jobs.
runs-on: ubuntu-24.04
steps:
Expand Down
71 changes: 0 additions & 71 deletions .github/workflows/docs-deploy.yml

This file was deleted.

116 changes: 116 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
name: Docs

on:
workflow_dispatch:
inputs:
package:
description: 'Package to build documentation for.'
required: true
type: choice
options:
- essreduce
- essimaging
- essnmx
- essreflectometry
- essdiffraction
- esssans
- essspectroscopy
publish:
description: 'Publish documentation to GitHub pages.'
default: false
type: boolean
branch:
description: 'Branch/tag with documentation source. If not set, the current branch will be used.'
default: ''
required: false
type: string
linkcheck:
description: 'Run the link checker.'
default: true
required: false
type: boolean
workflow_call:
inputs:
package:
description: 'Package to build documentation for.'
required: true
type: string
publish:
default: false
type: boolean
branch:
description: 'Branch/tag with documentation source. If not set, the current branch will be used.'
default: ''
required: false
type: string
linkcheck:
description: 'Run the link checker. If not set the link checker will not be run.'
default: false
required: false
type: boolean

env:
PIXI_FROZEN: true
PIXI_NO_INSTALL: true

jobs:
docs:
name: Build documentation
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.branch == '' && github.ref || inputs.branch }}
fetch-depth: 0 # history required to determine version
- uses: prefix-dev/setup-pixi@v0.9.4
with:
pixi-version: v0.68.0
frozen: true
environments: docs-${{ inputs.package }}
- name: Build docs
run: pixi run docs-${{ inputs.package }}
- name: Test docs
run: pixi run docs-${{ inputs.package }} doctest
- name: Linkcheck
run: pixi run docs-${{ inputs.package }} linkcheck
if: ${{ inputs.linkcheck }}
- uses: actions/upload-artifact@v7
id: artifact-upload-step
with:
name: docs-${{ inputs.package }}
path: packages/${{ inputs.package }}/html
if-no-files-found: error
- run: echo "::notice::https://remote-unzip.scipp.deno.net/${{ github.repository }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}"

deploy:
name: Deploy documentation
needs: [ docs ]
if: ${{ inputs.publish }}
runs-on: 'ubuntu-24.04'
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.branch == '' && github.ref || inputs.branch }}
- uses: actions/download-artifact@v7
with:
name: docs-${{ inputs.package }}
path: docs_html
- name: Prepare site
run: |
PACKAGE=${{ inputs.package }}
SUBPATH=${PACKAGE#ess}
git fetch origin gh-pages:gh-pages || true
git worktree add gh-pages-site gh-pages || mkdir -p gh-pages-site
rm -rf gh-pages-site/$SUBPATH
mkdir -p gh-pages-site/$SUBPATH
cp -a docs_html/. gh-pages-site/$SUBPATH/
cp docs/index.html gh-pages-site/index.html
touch gh-pages-site/.nojekyll
- name: Build search index
run: npx pagefind@latest --site gh-pages-site --bundle-dir pagefind
- uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: gh-pages-site
42 changes: 35 additions & 7 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- uses: prefix-dev/setup-pixi@v0.9.4
with:
pixi-version: v0.68.0
Expand All @@ -53,11 +53,39 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: prefix-dev/setup-pixi@v0.9.4
fetch-tags: true
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
pixi-version: v0.68.0
frozen: true
environments: lb-${{ matrix.package }}
version: "0.7.21"
python-version: "3.11"
cache-suffix: ${{ matrix.package }}
- name: Test with lowest direct dependencies
run: pixi run -e lb-${{ matrix.package }} test ${{ matrix.package }}
working-directory: packages/${{ matrix.package }}
run: uv run --extra=test --resolution=lowest-direct pytest

latest-dependencies:
name: Latest dependencies ${{ matrix.package }}
strategy:
fail-fast: false
matrix:
package:
- essreduce
- essimaging
- essnmx
- essdiffraction
- essreflectometry
- esssans
- essspectroscopy
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-tags: true
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
version: "0.7.21"
python-version: "3.11"
cache-suffix: ${{ matrix.package }}
- name: Test with latest dependencies
working-directory: packages/${{ matrix.package }}
run: uv run --extra=test --resolution=highest pytest
Loading
Loading