Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
a8e8a11
build: split conda environment file into denpendency groups
sbrandstaeter Mar 9, 2026
cd36ad1
build: add tf-keras dependency explicitly and limit setuptools versio…
sbrandstaeter Mar 18, 2026
1ec8567
fix: np.linalg imports
sbrandstaeter Mar 18, 2026
b8bea84
build: change to conda driven dependency management
sbrandstaeter Apr 13, 2026
1e2a5a4
build: activate base to find conda-lock
sbrandstaeter Apr 13, 2026
662be96
ci: clean conda cache
sbrandstaeter Apr 13, 2026
5cb6568
ci: use mamba for conda-lock
sbrandstaeter Apr 13, 2026
d4438e6
ci: bump actions/checkout to v5
sbrandstaeter Apr 13, 2026
dbca697
ci: use miniforge
sbrandstaeter Apr 13, 2026
0927397
refactor: blackify code with new black version
sbrandstaeter Apr 13, 2026
201f406
test: update .pylintrc to latest pylint version
sbrandstaeter Apr 13, 2026
9db683b
build: add particles name to pypi dependency
sbrandstaeter Apr 15, 2026
fc6e258
build: fix import errors arviz 1.0.0 by bumping pymc version
sbrandstaeter Apr 15, 2026
3627fc6
build: adapt pydoe name to non-camelcase
sbrandstaeter Apr 15, 2026
1d3fe09
build: introduce base enviroment to pyproject.toml with pixi
sbrandstaeter Apr 14, 2026
c2231c6
build: introduce pixi features
sbrandstaeter Apr 14, 2026
719d289
build: remove pixi feature queens and cleanup
sbrandstaeter Apr 14, 2026
5d544bb
build: add current pip-tools mininum versions
sbrandstaeter Apr 15, 2026
bca3359
build: bump versions to current conda-lock versions
sbrandstaeter Apr 15, 2026
c35ca17
build: add explicit dependency of contourpy
sbrandstaeter Apr 15, 2026
c15ae22
build: first working setup with uv venv
sbrandstaeter Apr 15, 2026
0bd1440
build: update pypi dependencies based on latest conda-lock
sbrandstaeter Apr 15, 2026
ad05dfe
build: remove contourpy as explicit dependency
sbrandstaeter Apr 15, 2026
b3f256e
build: make dev group uv installable
sbrandstaeter Apr 15, 2026
3ac1102
build: add license information to metadata
sbrandstaeter Apr 17, 2026
3a2c7c1
build: cleanup pixi workspace
sbrandstaeter Apr 17, 2026
5ffa9df
build: prepare switch from liccheck to pip-licenses
sbrandstaeter Apr 17, 2026
baeb0b4
build: add pixi.lock
sbrandstaeter Apr 17, 2026
3223050
ci: switch github ci to pixi
sbrandstaeter Apr 17, 2026
68f5641
build: add editable install of QUEENS to pixi default feature/ enviro…
sbrandstaeter Apr 17, 2026
97e80b4
ci: pixi list is called after install anyway
sbrandstaeter Apr 17, 2026
df13f3e
build: fix black python version warning
sbrandstaeter Apr 17, 2026
8cf1b5d
ci: ensure that pipline fails if one code check fails
sbrandstaeter Apr 17, 2026
3b4b8d2
ci: deactivate caching
sbrandstaeter Apr 17, 2026
2ca19cd
ci: skip .pixi path for nbstripout
sbrandstaeter Apr 17, 2026
abf5121
build: add license exception for torch
sbrandstaeter Apr 17, 2026
d2d5b68
feat: rework remote env build and remote tests with using pixi
sbrandstaeter Apr 17, 2026
e436d4f
build: add license exception for PySide6
sbrandstaeter Apr 17, 2026
36c95fe
feat: format warning
sbrandstaeter Apr 17, 2026
62d8bef
feat: fix checking pixi availability
sbrandstaeter Apr 17, 2026
1165f38
feat: fix checking pixi availabnility without warning
sbrandstaeter Apr 17, 2026
4b88697
build: add license exception for shiboken6
sbrandstaeter Apr 17, 2026
ab985db
feat: check integrity of dependencies in pyproject
sbrandstaeter Apr 18, 2026
7f02edb
build: make pyproject dependencies consistent
sbrandstaeter Apr 18, 2026
6151615
ci: add dependency integrity checks to ci pipeline
sbrandstaeter Apr 18, 2026
066fee3
ci: use cache only on main
sbrandstaeter Apr 18, 2026
3fc045a
ci: improve logs of pixi integrity checks
sbrandstaeter Apr 19, 2026
80137ed
ci: make sure that pixi.lock not already changed
sbrandstaeter Apr 19, 2026
9ba2b2e
ci: fix pixi lock
sbrandstaeter Apr 19, 2026
795e7ee
ci: allow pixi lock to fail
sbrandstaeter Apr 19, 2026
6444223
ci: remove authentication to prefix dev
sbrandstaeter Apr 19, 2026
e935aaa
ci: reactivate cache and deactivate auth
sbrandstaeter Apr 19, 2026
c9f4cc4
fix: mypy errors
leahaeusel Apr 20, 2026
d4ceb11
ci: bump version of skywalking eyes (license header checks) up to 0.8.0
sbrandstaeter Apr 20, 2026
c336845
fix: np.trapz renamed to np.trapezoid in numpy > 2.0
sbrandstaeter Apr 22, 2026
ded2a78
build: fix pypi overwrite of tensorflow-probability
sbrandstaeter Apr 23, 2026
4084474
build: manually install queens package in environments
sbrandstaeter Apr 24, 2026
1176983
build: deactivate default feature for all environments
sbrandstaeter Apr 24, 2026
5db23c0
build: fix environment in documentation build workflow
sbrandstaeter Apr 24, 2026
1c2c1e3
docs: fix documentation build warnings
sbrandstaeter Apr 24, 2026
20417ac
fix: type hinting
sbrandstaeter Apr 24, 2026
e247344
docs: link to external README.md to fix warning
sbrandstaeter Apr 24, 2026
68b8cb4
ci: introduce testing on macos
sbrandstaeter Apr 24, 2026
e8567e0
ci: split jobs into code checks and tests
sbrandstaeter Apr 24, 2026
435284d
ci: ensure install queens to correct interpreter
sbrandstaeter Apr 24, 2026
e7c7b1d
ci: cleanup tests_local workflow
sbrandstaeter Apr 24, 2026
8f8c60c
ci: split into three cleaned workflows
sbrandstaeter Apr 24, 2026
75f0b93
ci: add names for build documentation
sbrandstaeter Apr 24, 2026
471953d
ci: unify pytest calls
sbrandstaeter Apr 27, 2026
f6f4f54
ci: upload artifacts as last step
sbrandstaeter Apr 27, 2026
64ab5b3
ci: always run tutorial tests even if some core tests fail
sbrandstaeter Apr 27, 2026
7a9c8aa
ci: make step names more explicit
sbrandstaeter Apr 27, 2026
5d69110
ci: remove unnecessary PR write access
sbrandstaeter Apr 27, 2026
8361db5
build: remove dependency bokeh
sbrandstaeter Apr 27, 2026
2ec689f
build: remove dependency cython
sbrandstaeter Apr 27, 2026
b4a7999
build: remove dependency autograd
sbrandstaeter Apr 27, 2026
62dad6b
build: remove dependency optax
sbrandstaeter Apr 27, 2026
d26605a
ci: remove PR write access in local testsuite workflow
sbrandstaeter Apr 27, 2026
a8bff89
ci: introduce queens setup action to reduce duplicate code
sbrandstaeter Apr 27, 2026
09f0b93
ci: fix name of 4C integration tests job
sbrandstaeter Apr 27, 2026
ea0414d
ci: split into three test steps, compute coverage and junit report fr…
sbrandstaeter Apr 27, 2026
a08c37b
ci: always build test reports
sbrandstaeter Apr 27, 2026
b122e6c
ci: only build all envs once in code checks use only queens-dev for t…
sbrandstaeter Apr 27, 2026
1882a0a
ci: use relative coverage paths to enable combining from docker and n…
sbrandstaeter Apr 27, 2026
d4e5d80
ci: bump version of upload artifact action
sbrandstaeter Apr 27, 2026
f59a3d0
ci: bump version of checkout action
sbrandstaeter Apr 27, 2026
c73b2d7
ci: bump version of upload pages artifact
sbrandstaeter Apr 27, 2026
079b6a1
ci: bump version of deploy pages
sbrandstaeter Apr 27, 2026
e0f52ae
ci: bump version of download artifact
sbrandstaeter Apr 27, 2026
bde8e06
ci: bump version of junit report
sbrandstaeter Apr 27, 2026
b01ee76
test: fix elementary effects tests
reginabuehler May 4, 2026
bde9a76
Merge pull request #3 from reginabuehler/pixi-dependency-management
sbrandstaeter May 4, 2026
d97204b
ci: add pypi build test
sbrandstaeter Apr 28, 2026
e96207a
ci: ignore path test in wheel based tests
sbrandstaeter Apr 28, 2026
dfbbe48
feat: activate testing of tutorial tests that use 4C
sbrandstaeter May 8, 2026
d1f20a3
fix: import error in 4c tutorial tests
sbrandstaeter May 8, 2026
3b17e0c
fix: change cwd for notebook tests
sbrandstaeter May 8, 2026
78ea315
fix: resolve notebook path in test execution
sbrandstaeter May 8, 2026
97210ee
fix: add tutorials dir to sys.path
sbrandstaeter May 8, 2026
9340800
refactor: use config directories to identify base dir
sbrandstaeter May 8, 2026
fed5dc0
fix: use pandas functionality for filtering
sbrandstaeter May 8, 2026
2349d63
ci: publish junit report for each pytest job
sbrandstaeter May 9, 2026
55beeba
fix: np.NaN has been deprecated
sbrandstaeter May 10, 2026
498bdd5
fix: accepted_sum is a one-dimensional array in case of several chain…
sbrandstaeter May 10, 2026
6521375
docs: document details of test setup
sbrandstaeter May 10, 2026
f572204
fix: adjust expected values and switch to numpy testing, control tols
sbrandstaeter May 10, 2026
befc284
docs: add explanation of test setup
sbrandstaeter May 10, 2026
baa7a67
feat: switch to numpy testing statements
sbrandstaeter May 10, 2026
4e5de59
fix: adjust expected values for new dependency versions
sbrandstaeter May 10, 2026
aca321e
feat: loosen tolerances a bit
sbrandstaeter May 10, 2026
1c0c577
docs: add explanation of test setup
sbrandstaeter May 10, 2026
142f8fe
feat: switch to numpy testing statements and loosen tolerances
sbrandstaeter May 10, 2026
8b6c46a
fix: adjust desired values for new dependency versions
sbrandstaeter May 10, 2026
e23b983
feat: switch to numpy testing statements with adaptable tolerances
sbrandstaeter May 10, 2026
5df93cf
docs: add explanation of test setup and analytical solution
sbrandstaeter May 10, 2026
0ea58c0
fix: control reproducibility of lhs sampling with proper, modern rng …
sbrandstaeter May 10, 2026
892ed87
fix: adjust desired values due to new dependency versions
sbrandstaeter May 10, 2026
c5c368f
fix: change desired values since salib switched to proper np.random.G…
sbrandstaeter May 10, 2026
a4837a5
fix: adjust desired values due to changed sequences
sbrandstaeter May 10, 2026
1eebaa5
fix: define cdf of lognormal for x<=0 to be 0, this is identical to t…
sbrandstaeter May 10, 2026
9f07bb7
fix: adapt desired values that changed due to the LHS implementation …
sbrandstaeter May 10, 2026
676676d
fix: adjust desired values due to changed lhs behaviour (fixed seed)
sbrandstaeter May 10, 2026
cb35c95
Merge branch 'main' into pixi-dependency-management
sbrandstaeter May 10, 2026
6986c96
fix: add marker for tutorial 5
sbrandstaeter May 10, 2026
0ddf746
ci: exclude tests/unit_tests/data_processors/test_txt_file.py from bu…
sbrandstaeter May 10, 2026
933fc1a
fix: update Sized import
leahaeusel May 11, 2026
b4b7965
fix: mypy errors due to Literal[1]
leahaeusel May 11, 2026
76d197a
feat: print content of log file to error message
sbrandstaeter May 10, 2026
26205c9
feat: introduce seed handling with seed sequences
sbrandstaeter May 11, 2026
253a0bc
fix: switch to precomputed desired values
sbrandstaeter May 11, 2026
ffb4629
feat: add convergence test marker and test variant for gaussian neura…
sbrandstaeter May 11, 2026
b764c38
fix: reduce tolerance to make test past of macos and ubuntu
sbrandstaeter May 11, 2026
b1fd3fc
fix: make sure to use same python executable
sbrandstaeter May 11, 2026
2eba738
fix: subprocess setup for test
sbrandstaeter May 11, 2026
6e10ec3
fix: loosen tolerance to work with macos and ubuntu
sbrandstaeter May 11, 2026
9659d92
fix: maxiter not known by TNC optimizer
sbrandstaeter May 11, 2026
ca67701
fix: deactivate pca tests for macos with automatic reenable once the …
sbrandstaeter May 11, 2026
2a34264
ci: make macos pypi build test optional (should be temporary)
sbrandstaeter May 12, 2026
eb4dc0d
ci: bump version of setup-python action
sbrandstaeter May 12, 2026
ef6120d
docs: update documentation with pixi dependency management
sbrandstaeter May 12, 2026
6d225b9
ci: remove conda environment action
sbrandstaeter May 12, 2026
8ff37db
build: remove conda environment files
sbrandstaeter May 12, 2026
bd0af1b
build: remove dev dependencies from base environment
sbrandstaeter May 12, 2026
5b63815
build: update pixi.lock
sbrandstaeter May 12, 2026
09f391d
ci: update md github summary report to new workflow
sbrandstaeter May 12, 2026
e933198
ci: remove junit report from collection since it is published per job…
sbrandstaeter May 12, 2026
fd12d7f
docs: instructions on how to change dependencies
sbrandstaeter May 12, 2026
cb27716
ci: add dependabot automatic updating of actions
sbrandstaeter May 13, 2026
1540676
build(deps): bump the github-actions group across 2 directories with …
dependabot[bot] May 13, 2026
d30c84f
docs: fix link to section
sbrandstaeter May 13, 2026
5da1a16
docs: remove double information
sbrandstaeter May 13, 2026
7345b98
ci: add workflow for automatic dependecy upgrades
sbrandstaeter May 13, 2026
f181e6a
ci: add gitattributes file for pixi.lock
sbrandstaeter May 13, 2026
3b9e988
build: make queens-base the default environment, remove queens-base
sbrandstaeter May 13, 2026
d7e30f3
docs: update documentation with default pixi environment and rename q…
sbrandstaeter May 13, 2026
e451cb6
ci: unify use of pixi to make maintenance easier
sbrandstaeter May 13, 2026
b3c8b47
refactor: activate yamllint for workflow yml files
sbrandstaeter May 13, 2026
95882f8
ci: bump pixi version, fix pixi version
sbrandstaeter May 13, 2026
ffcc328
build: remove environment name prefix queens-
sbrandstaeter May 14, 2026
55e94e7
ci: remove unnecessary pixi run calls
sbrandstaeter May 14, 2026
ab16dec
fix: remove debugging print statements
sbrandstaeter May 21, 2026
804e8fd
fix: remove duplicate test
sbrandstaeter May 21, 2026
a9de493
docs: unify description of seed
sbrandstaeter May 21, 2026
6c46182
ci: rename job
sbrandstaeter May 21, 2026
1e4b367
ci: remove groups in single group steps
sbrandstaeter May 21, 2026
2d234ea
ci: introduce action to run pytest
sbrandstaeter May 24, 2026
89a9916
ci: move artifact handling into pytest action
sbrandstaeter May 24, 2026
f973e18
refactor: remove extra string concatenation
sbrandstaeter May 24, 2026
d4eaa74
build: fix ruff version mismatch
sbrandstaeter May 25, 2026
3c647c2
docs: fix typo and formatting
sbrandstaeter May 25, 2026
7c63b98
ci: extract definition of bash
sbrandstaeter May 27, 2026
5f95f7c
ci: simplify bash
sbrandstaeter May 27, 2026
22a3732
ci: simplify bash even more
sbrandstaeter May 27, 2026
07a1ace
ci: remove unused default environmnet
sbrandstaeter May 27, 2026
5790e7f
ci: use entire src folder as reference for coverage
sbrandstaeter May 28, 2026
60f28af
ci: add one source of truth for pixi version
sbrandstaeter May 28, 2026
5b096fb
fix: remove unused file
sbrandstaeter May 28, 2026
d25975c
build: expose yamllint config outside precommit hook, add yamllint co…
sbrandstaeter May 28, 2026
617cdd1
build: manage version with pixi
sbrandstaeter May 28, 2026
5f1e16a
ci: collect all test but ignore problematic cases, add explanation
sbrandstaeter May 28, 2026
eb83358
ci: run pre-commit hooks and code quality in same order, add missing …
sbrandstaeter May 28, 2026
5b34b10
ci: restrict pypi test collection to unit_tests as many packages miss…
sbrandstaeter May 28, 2026
486d0f4
docs: add explanation for jupyter kernel
sbrandstaeter May 28, 2026
5d96d0e
ci: remove comments that break shell command
sbrandstaeter May 28, 2026
80ee1f6
fix: use absolute path for notebooks in test suite
sbrandstaeter May 28, 2026
c75212d
feat: generalize path finding of root and src dirs that also work in …
sbrandstaeter May 28, 2026
e999690
refactor: move helper functions to tests_utils
sbrandstaeter May 28, 2026
dba0749
ci: ensure editable queens install
sbrandstaeter May 28, 2026
27342f8
ci: add gitlab strategy variables
sbrandstaeter May 28, 2026
bdfc074
fix: install editable queens on remote
sbrandstaeter May 28, 2026
713b820
ci: ensure install editable queens on pytest call
sbrandstaeter May 28, 2026
50aa61d
ci: switch to locked env
sbrandstaeter May 28, 2026
4b7f57e
build: update pixi.lock to v7
sbrandstaeter May 28, 2026
1578e15
ci: add optional use of existign 4C build
sbrandstaeter May 29, 2026
547b05d
ci: run cleanup immediately once tests finish
sbrandstaeter May 29, 2026
1689be8
ci: fix needs statements
sbrandstaeter May 29, 2026
964bb64
ci: periodic, automatic update of pixi version
sbrandstaeter May 29, 2026
978d609
ci: fix naming
sbrandstaeter May 29, 2026
c044e80
ci: deactivate caching for non-install
sbrandstaeter May 29, 2026
498c1ff
ci: frozen cannot be true if install is false
sbrandstaeter May 29, 2026
2f7c194
ci: switch default value for environment
sbrandstaeter May 29, 2026
1ddc2b9
ci: switch to GitHub App managed branch creation
sbrandstaeter May 29, 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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SCM syntax highlighting & preventing 3-way merges
pixi.lock merge=binary linguist-language=YAML linguist-generated=true -diff
25 changes: 0 additions & 25 deletions .github/actions/create_python_environment/action.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/actions/run-pytest-suite/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Run pytest suite
description: Run a marked pytest suite and publish its reports.

inputs:
test-suite-name:
description: Test suite name used in coverage, JUnit, and artifact filenames.
required: true
markers:
description: Pytest marker expression to select tests.
required: true

runs:
using: composite
steps:
- name: Prepare report names
id: report-names
shell: bash
env:
TEST_SUITE_NAME: ${{ inputs.test-suite-name }}
run: |
echo "coverage-file=.coverage.${TEST_SUITE_NAME}" >> "$GITHUB_OUTPUT"
echo "junit-file=test_junit_${TEST_SUITE_NAME}.xml" >> "$GITHUB_OUTPUT"
echo "artifact-name=raw_test_reports_${TEST_SUITE_NAME}" >> "$GITHUB_OUTPUT"

- name: Run pytest
id: pytest
shell: bash
continue-on-error: true
env:
COVERAGE_FILE: ${{ steps.report-names.outputs.coverage-file }}
JUNIT_FILE: ${{ steps.report-names.outputs.junit-file }}
PYTEST_MARKERS: ${{ inputs.markers }}
run: |
pytest_args=(
-v
-m "${PYTEST_MARKERS}"
--cov
--cov-report=term
--color=yes
-o junit_logging=all
--junitxml="${JUNIT_FILE}"
)

if [ -n "${TEST_TIMING_OPTION:-}" ]; then
read -r -a timing_args <<< "${TEST_TIMING_OPTION}"
pytest_args+=("${timing_args[@]}")
fi

pytest "${pytest_args[@]}"

- name: Publish junit pytest report
if: always()
uses: mikepenz/action-junit-report@v6
with:
report_paths: ${{ steps.report-names.outputs.junit-file }}
annotate_only: true
job_summary: false

- name: Upload raw test reports
if: always()
uses: actions/upload-artifact@v7
with:
name: ${{ steps.report-names.outputs.artifact-name }}
include-hidden-files: true
path: |
${{ steps.report-names.outputs.coverage-file }}
${{ steps.report-names.outputs.junit-file }}
if-no-files-found: error
retention-days: 7

- name: Fail if pytest failed
if: steps.pytest.outcome == 'failure'
shell: bash
run: exit 1
88 changes: 88 additions & 0 deletions .github/actions/setup-queens-pixi/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
name: Setup QUEENS pixi environment
description: >
Set up pixi, install QUEENS editable into the selected environment,
and optionally ensure rsync is available.

inputs:
cache:
description: Whether setup-pixi should enable caching.
required: false
default: "true"
cache-write:
description: Whether setup-pixi should write to the cache.
required: false
default: "false"
Comment thread
leahaeusel marked this conversation as resolved.
run-install:
description: Whether setup-pixi should install the selected pixi environments.
required: false
default: "true"
environments:
description: Whitespace-separated list of pixi environments to install.
required: false
default: default
activate-environment:
Comment thread
leahaeusel marked this conversation as resolved.
description: Pixi environment to activate and use for the editable install.
required: false
default: default
install-editable:
description: Whether to install QUEENS editable into the selected pixi environment.
required: false
default: "true"
ensure-rsync:
description: Whether to verify that rsync is available, installing it if necessary.
required: false
default: "true"
frozen:
description: Whether to install with frozen requirements.
required: false
default: "true"

runs:
using: composite
steps:
- name: Read pixi version
id: pixi-version
shell: bash
run: |
pixi_version="$(tr -d '[:space:]' < "${GITHUB_WORKSPACE}/.pixi-version")"
echo "version=${pixi_version}" >> "$GITHUB_OUTPUT"

- uses: prefix-dev/setup-pixi@v0.9.5
with:
pixi-version: ${{ steps.pixi-version.outputs.version }}
cache: ${{ inputs.cache }}
cache-write: ${{ inputs.cache-write }}
run-install: ${{ inputs.run-install }}
environments: ${{ inputs.environments }}
frozen: ${{ inputs.frozen }}
activate-environment: ${{ inputs.activate-environment }}

- name: Install QUEENS in workspace
if: ${{ inputs.install-editable != 'false' }}
shell: bash
run: |
pixi run --locked -e "${{ inputs.activate-environment }}" install-editable

- name: Mark repo as safe for git
shell: bash
run: |
git config --global --add safe.directory "${GITHUB_WORKSPACE}"

- name: Ensure rsync is available
if: ${{ inputs.ensure-rsync != 'false' }}
shell: bash
run: |
if command -v rsync >/dev/null 2>&1; then
rsync --version
elif [ "${RUNNER_OS}" = "Linux" ]; then
sudo apt-get update
sudo apt-get install -y rsync
rsync --version
elif [ "${RUNNER_OS}" = "macOS" ]; then
brew install rsync
rsync --version
else
echo "Unsupported runner OS for rsync setup: ${RUNNER_OS}"
exit 1
fi
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice to have this github-actions updating mechanism now! As mentioned before, I am only concerned that the PR mechanism won't work because we disabled all branches besides main...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good point as mentioned here, we should find a solution that remains as restrictive as possible.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
version: 2
updates:
- package-ecosystem: github-actions
directories:
- /
- /.github/actions/setup-queens-pixi
schedule:
interval: monthly
groups:
github-actions:
patterns:
- "*"
cooldown:
default-days: 7
41 changes: 16 additions & 25 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# yamllint disable
name: build_documentation
name: Build documentation

on:
"on":
pull_request:
push:
branches:
Expand All @@ -15,56 +14,48 @@ permissions:

jobs:
build-documentation:
name: Build documentation
runs-on: ubuntu-latest
container:
image: ghcr.io/4c-multiphysics/4c-minimal:main
options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
defaults:
run:
shell: bash -l {0}
shell: bash -l -eo pipefail {0}
steps:
- uses: actions/checkout@v4
- name: Mark repo as safe for git
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Install rsync
run: |
sudo apt-get update
sudo apt-get install -y rsync
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-queens-pixi
with:
cache: true
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
environments: dev
activate-environment: dev
- name: Create links to 4C
run: |
ln -s /home/user/4C/bin/ config/4C_build
- name: Create Python environment
id: environment
uses: ./.github/actions/create_python_environment
- name: Add tutorial dependencies
env:
PYTHON_PACKAGE_MANAGER: ${{steps.environment.outputs.ppm}}
- name: Register Jupyter kernel
run: |
$PYTHON_PACKAGE_MANAGER activate queens
Comment thread
leahaeusel marked this conversation as resolved.
pip install -e .[tutorial]
python -m ipykernel install --user --name queens --display-name "Python (queens)"
- name: Install xvfb
run: |
apt-get update
apt-get install -y xvfb
- name: Sphinx build
env:
PYTHON_PACKAGE_MANAGER: ${{steps.environment.outputs.ppm}}
PYTHONPATH: ${{ github.workspace }}
run: |
set -euxo pipefail
$PYTHON_PACKAGE_MANAGER activate queens
set -x
sphinx-apidoc -o doc/source src/ -fMT
cd doc
xvfb-run -a sphinx-build -b html -d build/doctrees source build/html -W
- name: Upload html
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v5
with:
path: doc/build/html
retention-days: 1

deploy-documentation:
name: Deploy documentation
needs: build-documentation
if: ${{github.ref == 'refs/heads/main'}}
environment:
Expand All @@ -74,4 +65,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
Loading
Loading