Skip to content
Merged
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
26 changes: 26 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Codecov configuration
# https://docs.codecov.com/docs/codecov-yaml

github_checks:
annotations: true

comment:
layout: 'reach, diff, flags, files'
behavior: default
require_changes: false
require_base: false
require_head: true

coverage:
status:
project:
default:
target: auto
threshold: 1%
# Make project coverage informational (won't block PR)
informational: true
patch:
default:
target: auto
# Require patch coverage but with threshold
threshold: 1%
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# WARNING: Do not edit this file manually.
# Any changes will be overwritten by Copier.
_commit: v0.11.3
_commit: v0.12.0
_src_path: gh:easyscience/templates
app_docs_url: https://easyscience.github.io/dynamics-app
app_doi: 10.5281/zenodo.18877180
Expand Down
26 changes: 1 addition & 25 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,32 +63,8 @@ jobs:
files: ./coverage-unit.xml
token: ${{ secrets.CODECOV_TOKEN }}

# Job 2: Run integration tests with coverage and upload to Codecov
integration-tests-coverage:
runs-on: ubuntu-latest

steps:
- name: Check-out repository
uses: actions/checkout@v6

- name: Set up pixi
uses: ./.github/actions/setup-pixi

- name: Run integration tests with coverage
run:
pixi run integration-tests-coverage --cov-report=xml:coverage-integration.xml

- name: Upload integration tests coverage to Codecov
if: ${{ !cancelled() }}
uses: ./.github/actions/upload-codecov
with:
name: integration-tests-job
flags: integration
files: ./coverage-integration.xml
token: ${{ secrets.CODECOV_TOKEN }}

# Job 4: Build and publish dashboard (reusable workflow)
run-reusable-workflows:
needs: [docstring-coverage, unit-tests-coverage, integration-tests-coverage] # depend on the previous jobs
needs: [docstring-coverage, unit-tests-coverage] # depend on the previous jobs
uses: ./.github/workflows/dashboard.yml
secrets: inherit
6 changes: 5 additions & 1 deletion .github/workflows/dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ jobs:
- name: Set up pixi
uses: ./.github/actions/setup-pixi

# Install badgery into the active Pixi environment without modifying
# pixi.toml/pixi.lock. Using `pixi add` here re-solves the whole project
# and rebuilds the local editable package, which can cause intermittent
# Linux CI failures (`Text file busy`, os error 26).
- name: Install badgery
shell: bash
run: pixi add --pypi --git https://github.com/enhantica/badgery badgery
run: pixi run python -m pip install git+https://github.com/enhantica/badgery

- name: Run docstring coverage and code complexity/maintainability checks
run: |
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ docs/docs/assets/
# Node
node_modules

# Tox
.tox

# Misc
.benchmarks
.cache
Expand Down
13 changes: 0 additions & 13 deletions codecov.yml

This file was deleted.

9 changes: 8 additions & 1 deletion docs/docs/assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,14 @@ label.md-nav__title[for="__drawer"] {

/* Change the overall width of the page */
.md-grid {
max-width: 1280px;
max-width: 116em;
}

/* Keep prose line length stable when sidebars are hidden at narrower widths */
.md-main .md-content > .md-content__inner {
width: min(100%, 40.5em);
margin-left: auto !important;
margin-right: auto !important;
}

/* Needed for mkdocs-jupyter to show download and other buttons on top of the notebook */
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tutorials/components.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.14.4"
"version": "3.14.5"
}
},
"nbformat": 4,
Expand Down
14 changes: 13 additions & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,18 @@ plugins:
show_root_heading: true
show_root_full_path: false
show_submodules: true
show_source: true
show_source: false
show_bases: false
# Uncomment when the project depends on `easyscience` and inherited
# EasyScience base-class members should be shown in the API docs.
preload_modules:
- easyscience
inherited_members: true
show_category_heading: true
merge_init_into_class: true
docstring_options:
ignore_init_summary: true
summary: true
- search

# Determines additional directories to watch when running mkdocs serve
Expand Down Expand Up @@ -192,6 +203,7 @@ nav:
- Component collection: tutorials/component_collection.ipynb
- Convolution: tutorials/convolution.ipynb
- Detailed balance: tutorials/detailed_balance.ipynb
- DeltaLorentz: tutorials/delta_lorentz.ipynb
- Diffusion model: tutorials/diffusion_model.ipynb
- Sample model: tutorials/sample_model.ipynb
- Instrument model: tutorials/instrument_model.ipynb
Expand Down
Loading
Loading