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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Python CI

on:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-and-build:
runs-on: ubuntu-latest
env:
NSTAT_ALLOW_SYNTHETIC_DATA: "1"
NSTAT_EXPECTED_EXAMPLE_NOTEBOOKS: "25"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: false

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install package and dev dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]

- name: Generate docs/notebooks/parity reports
run: |
python tools/generate_help_topic_docs.py
python tools/generate_example_notebooks.py
python tools/freeze_port_baseline.py
python tools/generate_method_parity_matrix.py
python tools/generate_implemented_method_coverage.py

- name: Verify help docs coverage
run: |
python tools/verify_help_docs_coverage.py

- name: Verify notebook execution and topic alignment (25/25)
run: |
python tools/verify_examples_notebooks.py

- name: Build Sphinx docs
run: |
sphinx-build -b html docs docs/_build/html

- name: Run offline standalone check (strict target install)
run: |
python tools/verify_offline_standalone.py --require-target-install

- name: Run pytest
run: |
python -m pytest -vv --maxfail=1 --durations=20

- name: Upload reports
if: always()
uses: actions/upload-artifact@v4
with:
name: nstat-python-reports
path: |
reports/*.json
docs/_build/html
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
.DS_Store
.svn
__pycache__/
*.pyc
.pytest_cache/
.ipynb_checkpoints/

docs/_build/
plots/

reports/pytest.log
reports/pytest.xml
1,777 changes: 0 additions & 1,777 deletions Analysis.m

This file was deleted.

1,072 changes: 0 additions & 1,072 deletions CIF.m

This file was deleted.

88 changes: 0 additions & 88 deletions ConfidenceInterval.m

This file was deleted.

181 changes: 0 additions & 181 deletions ConfigColl.m

This file was deleted.

Loading