Skip to content

Add customisation hook for loading time-dependent transformations from NeXus #105

Add customisation hook for loading time-dependent transformations from NeXus

Add customisation hook for loading time-dependent transformations from NeXus #105

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
pull-requests: read
jobs:
changes:
name: Detect changes
runs-on: ubuntu-24.04
outputs:
packages: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v6
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
essreduce:
- 'packages/essreduce/**'
- 'pyproject.toml'
- 'pixi.lock'
- 'pixi.toml'
- '.github/workflows/**'
- '.pre-commit-config.yaml'
- '.python-version'
essimaging:
- 'packages/essimaging/**'
- 'packages/essreduce/**'
- 'pyproject.toml'
- 'pixi.lock'
essnmx:
- 'packages/essnmx/**'
- 'packages/essreduce/**'
- 'pyproject.toml'
- 'pixi.lock'
formatting:
name: Formatting and static analysis
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: prefix-dev/setup-pixi@v0.9.4
with:
frozen: true
environments: lint
- run: pixi run -e lint lint
test:
name: Test ${{ matrix.package }}
needs: [changes, formatting]
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:
frozen: true
environments: ${{ matrix.package }}
- name: Run tests
run: pixi run -e ${{ matrix.package }} test ${{ matrix.package }}
docs:
name: Docs ${{ matrix.package }}
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:
frozen: true
environments: docs-${{ matrix.package }}
- name: Build docs
run: pixi run -e docs-${{ matrix.package }} docs ${{ matrix.package }}
- uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: docs-${{ matrix.package }}
path: packages/${{ matrix.package }}/html
- run: echo "::notice::https://remote-unzip.deno.dev/${{ github.repository }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}"