Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
702560b
ps: Adding new format of `TimeSeriesMetadataStore` (#84)
pesap May 8, 2025
968c1a8
perf: Changing backend json serialization/deserialization (#91)
pesap May 9, 2025
664f0c7
feat: Adding h5py backend and propagating changes (#94)
pesap May 15, 2025
acda183
feat: Adding new `DeterministicTimeSeries` (#95)
pesap Jul 16, 2025
f69e85f
Update formatting of initial_timestamp (#99)
jerrypotts Jul 17, 2025
cf2930e
fix: Adding fix from rebase
pesap Oct 3, 2025
72ed97b
deps: Updating dependencies
pesap Oct 3, 2025
42a544e
fix: Fixing some warnings on pytest
pesap Oct 3, 2025
ac2c692
ci: Updating workflows to be more simple
pesap Oct 3, 2025
10084e4
feat: Adding uv.lock since it is recommended by astral
pesap Oct 3, 2025
2ae0b42
feat: Adding `.show_components` method for system
pesap Oct 3, 2025
e1bb53c
bumping version to release candidate
pesap Oct 3, 2025
909309e
refactor: Removing DeterministicSingleTimeSeries in favor of a method…
pesap Oct 10, 2025
a1d8069
feat: Adding load system method (#108)
pesap Oct 10, 2025
ff9533f
bumpversion to new release candidate
pesap Oct 10, 2025
52fa23c
fix: loguru typo
pesap Nov 4, 2025
e62ed0a
Merge pull request #111 from NREL/fix/add-time-series-after-deserialize
daniel-thom Oct 18, 2025
80e9cd0
ci: Updating ci
pesap Nov 4, 2025
8ee8068
Merge branch 'main' into release/v1.0.0
pesap Nov 4, 2025
d5ea4fa
fix: unnecesary comments
pesap Nov 4, 2025
1f71028
fix: Adding h5py stubs.
pesap Nov 4, 2025
53b111c
fix: adding fixes for mypy and h5py
pesap Nov 4, 2025
87155ff
refactor: Removing implementation of DeterministicSingleTimeSeries
pesap Dec 2, 2025
f6c0f69
fix(pre-commit): Fixing pre-commit issues.
pesap Dec 3, 2025
234f33a
feat: Adding visualization for supplemental attributes on `System.inf…
pesap Dec 3, 2025
1b1a89f
fix: Updating base_quantity to reflect changes on pydantic (#113)
pesap Dec 3, 2025
a821417
fix(pre-commit): Fixing pre-commit issues.
pesap Dec 3, 2025
597146b
fix: Supplemental attributes can also have time series (#114)
pesap Dec 3, 2025
e76aa17
feat: Adding database manager to ensure we close (#115)
pesap Dec 3, 2025
817b4ca
fix: mypy issues
pesap Dec 3, 2025
4584f04
fix: Enforce uniqueness for the time series metadata store duplicates…
pesap Dec 5, 2025
73051b8
fix: migration bug (#117)
AadilLatif Dec 7, 2025
ff1f8b8
fix: pre-commit
pesap Dec 7, 2025
574c69d
bump release candidate
pesap Dec 7, 2025
926d219
ci: Adding new actions for automatic release (#118)
pesap Dec 9, 2025
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
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2

updates:
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 2
commit-message:
prefix: "build"
include: "scope"
rebase-strategy: "auto"
- package-ecosystem: github-actions
directory: /
commit-message:
prefix: "build"
include: "scope"
rebase-strategy: "auto"
schedule:
interval: "weekly"
19 changes: 19 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
dependencies:
- changed-files:
- any-glob-to-any-file: "uv.lock"

github_actions:
- changed-files:
- any-glob-to-any-file: ".github/**"

docs:
- changed-files:
- any-glob-to-any-file: "**/*.md"

release:
- changed-files:
- any-glob-to-any-file: "CHANGELOG.md"

tests:
- changed-files:
- any-glob-to-any-file: "tests/**"
127 changes: 83 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,104 @@ name: CI

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
DEFAULT_PYTHON: "3.13"
DEFAULT_OS: ubuntu-latest
UV_VERSION: "0.9.4"

jobs:
pre-commit:
runs-on: ubuntu-latest
name: Pre-commit hooks (lint/format/spell/type, all files)
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
version: ${{ env.UV_VERSION }}

- name: Install dependencies
run: uv sync --all-groups

- name: Run pre-commit
run: uv run pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage push


pytest:
name: Tests ${{ matrix.os }} / py${{ matrix.python }}
needs: pre-commit
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[chronify,dev]"
- name: Run pytest with coverage
run: |
pytest -v --cov --cov-report=xml
- name: codecov
uses: codecov/[email protected]
if: ${{ matrix.os == env.DEFAULT_OS && matrix.python-version == env.DEFAULT_PYTHON }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: infrasys-tests
fail_ci_if_error: false
verbose: true
mypy:
runs-on: ubuntu-latest
name: "mypy"
python: ["3.11", "3.12", "3.13"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
uses: actions/setup-python@v5
uses: astral-sh/setup-uv@v7
with:
python-version-file: "pyproject.toml"
- name: Installing dependencies
run: uv sync --dev
- name: Run mypy
enable-cache: true
version: ${{ env.UV_VERSION }}

- name: Set up Python ${{ matrix.python }}
run: uv python install ${{ matrix.python }}

- name: Install dependencies
run: uv sync --all-groups

- name: Running package tests
run: |
uv run mypy --config-file=pyproject.toml --ignore-missing-imports src/
ruff:
uv run pytest --cov --cov-report=xml

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

package:
name: Package smoke test
needs: pytest
runs-on: ubuntu-latest
name: "ruff"
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
- name: Checkout
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
src: "./src"
version: ${{ env.UV_VERSION }}
enable-cache: true

- name: Install dependencies
run: uv sync --all-groups

- name: Build and install wheel
run: |
uv build
python -m venv pkgtest
source pkgtest/bin/activate
python -m pip install --upgrade pip
python -m pip install dist/*.whl
python -c "import infrasys as m; print(getattr(m, '__version__', 'OK'))"
46 changes: 46 additions & 0 deletions .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: on-commit

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
labeler:
name: apply labels
permissions:
contents: read
pull-requests: write
issues: write
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v6
- uses: actions/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yaml
sync-labels: true

lint-commit-messages:
name: lint commit message
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Commitizen check
run: |
uvx --from commitizen cz check --rev-range HEAD^!
lint-pr-title:
# default: lints titles using https://github.com/commitizen/conventional-commit-types
name: lint pr title
runs-on: [ubuntu-latest]
permissions:
pull-requests: read
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 13 additions & 14 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: select python version
uses: actions/setup-python@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: "3.11"
- name: install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[chronify,dev]"
- name: build documentation
run: |
cd docs
make clean
make html
- name: deploy
version: "latest"

- name: Install the project
run: uv sync --group docs

- name: Build Sphinx documentation
run: uv run sphinx-build docs/source/ docs/_build/

- name: Deploy on GitHub Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
publish_dir: ./docs/_build/
force_orphan: true
full_commit_message: ${{ github.event.head_commit.message }}
26 changes: 0 additions & 26 deletions .github/workflows/publish_to_pypi.yml

This file was deleted.

Loading