Skip to content
Open
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
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 3a223c6
_commit: fdea3fe
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: python
Expand Down
49 changes: 20 additions & 29 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
name: Bug Report
about: Report a bug to help us improve
title: '[BUG] '
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Description**
A clear and concise description of the bug.

**Expected behavior**
A clear and concise description of what you expected to happen.
**Steps to Reproduce**
1.
2.
3.

**Screenshots**
If applicable, add screenshots to help explain your problem.
**Expected Behavior**
What you expected to happen.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Actual Behavior**
What actually happened. Include full error messages or tracebacks if available.

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Environment**
- OS: [e.g. Ubuntu 22.04, macOS 14.0, Windows 11]
- Python version: [e.g. 3.11.5] (`python --version`)
- Package version: (`pip show physics-workload | grep Version`)

**Additional context**
Add any other context about the problem here.
**Additional Context**
Add any other relevant context, logs, or screenshots.
25 changes: 12 additions & 13 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
name: Feature Request
about: Suggest a new feature or improvement
title: '[FEATURE] '
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Problem Statement**
A clear description of the problem this feature would solve. Ex. "I'm always frustrated when [...]"

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Proposed Solution**
A clear description of the desired behavior or feature.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Alternatives Considered**
Any alternative solutions or workarounds you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
**Additional Context**
Add any other context, mockups, or examples.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Question
about: Ask a question about usage or behavior
title: '[QUESTION] '
labels: question
assignees: ''
---

**Question**
A clear and concise description of your question.

**Context**
What are you trying to accomplish? Include relevant code snippets, configuration, or links to documentation you've already consulted.

**Environment**
If relevant, include your environment details (OS, language versions, package version).
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Description

Brief description of the changes in this PR.

## Type of Change

- [ ] Bug fix
- [ ] New feature
- [ ] Documentation update
- [ ] Refactor / code cleanup
- [ ] CI / build configuration
- [ ] Other (describe below)

## Checklist

- [ ] Linting passes (`make lint`)
- [ ] Tests pass (`make test`)
- [ ] New tests added for new functionality
- [ ] Documentation updated (if applicable)
- [ ] Changelog / version bump (if applicable)
44 changes: 43 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: actions-ext/python/setup@main
with:
Expand All @@ -53,6 +53,7 @@ jobs:
- name: Build
run: make build

<<<<<<< before updating
# - name: Test
# run: make coverage
#
Expand All @@ -72,3 +73,44 @@ jobs:
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
=======
- name: Test
run: make coverage

- name: Upload test results (Python)
uses: actions/upload-artifact@v7
with:
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
path: junit.xml
if: ${{ always() }}

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: '**/junit.xml'

- name: Upload coverage
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Make dist
run: make dist

- name: Test wheel install
run: |
python -m venv /tmp/test-wheel
/tmp/test-wheel/bin/pip install dist/*.whl
/tmp/test-wheel/bin/python -c "import physics_workload"

- name: Test sdist install
run: |
python -m venv /tmp/test-sdist
/tmp/test-sdist/bin/pip install dist/*.tar.gz
/tmp/test-sdist/bin/python -c "import physics_workload"

- uses: actions/upload-artifact@v7
with:
name: dist-${{matrix.os}}
path: dist
>>>>>>> after updating
41 changes: 37 additions & 4 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,57 @@
name: Publish Docs

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:

permissions:
actions: read
contents: write

jobs:
docs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
<<<<<<< before updating
- run: |
sudo apt-get update
sudo apt-get install -y libldap2-dev libssl-dev libsasl2-dev
- run: uv pip install .[develop]
- run: uv pip install yardang
=======

- name: Download dist from build
uses: actions/download-artifact@v7
with:
pattern: dist-ubuntu-latest*
merge-multiple: true
path: dist
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
if: github.event_name == 'workflow_run'

- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'

- name: Install from source (manual trigger)
run: |
uv pip install .[develop]
uv pip install yardang
if: github.event_name == 'workflow_dispatch'

>>>>>>> after updating
- run: yardang build

- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
Expand Down
51 changes: 24 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ __pycache__/
*.exp
*.lib

# Rust
target

# Distribution / packaging
.Python
build/
Expand Down Expand Up @@ -55,26 +58,12 @@ junit.xml
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
# Django
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# PyBuilder
target/

# IPython
profile_default/
ipython_config.py
Expand All @@ -85,15 +74,12 @@ ipython_config.py
# pipenv
Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
# Celery
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py
# Airspeed Velocity
.asv

# Environments
.env
Expand Down Expand Up @@ -126,11 +112,12 @@ dmypy.json
/site
index.md
docs/_build/
docs/src/_build/
docs/api
docs/index.md
docs/html
docs/index.md
docs/jupyter_execute
docs/src/_build/
docs/superpowers
index.md

# JS
Expand All @@ -141,13 +128,12 @@ js/node_modules
js/test-results
js/playwright-report
js/*.tgz
physics_workload/extension

# Jupyter
.ipynb_checkpoints
.autoversion
!physics_workload/extension/physics_workload.json
!physics_workload/extension/install.json
Untitled*.ipynb
physics_workload/extension
physics_workload/nbextension
physics_workload/labextension

Expand All @@ -157,8 +143,19 @@ physics_workload/labextension
# Rust
target

<<<<<<< before updating
# Project
staticfiles/
*.csv
*.xlsx
*/migrations/*
*/migrations/*
=======
# Hydra
outputs/
multirun/

# AI
ROADMAP.md
AGENTS.md
.github/hooks/sdlc.json
>>>>>>> after updating
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@ lints: lint
fix: fix-py fix-docs ## run all autoformatters
format: fix

<<<<<<< before updating
=======
################
# Other Checks #
################
.PHONY: check-dist check-types checks check

check-dist: ## check python sdist and wheel with check-dist
check-dist -v

check-types: ## check python types with ty
ty check --python $$(which python)

checks: check-dist

# Alias
check: checks
>>>>>>> after updating

#########
# TESTS #
Expand Down
Loading