Skip to content

Commit a83dd58

Browse files
Merge pull request #16 from pnnl/main
sync develop
2 parents ffb195e + ea61a49 commit a83dd58

26 files changed

Lines changed: 1965 additions & 273 deletions

.github/workflows/docs.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Deploy Documentation
22

3+
# Docs deploy only when a public version ships: after the "Publish to PyPI"
4+
# workflow finishes successfully, or on a manual run. Routine pushes to main
5+
# (and work on develop) do NOT update the public site.
36
on:
4-
push:
5-
branches:
6-
- main
7+
workflow_run:
8+
workflows: ["Publish to PyPI"]
9+
types: [completed]
10+
workflow_dispatch: # allow manual rebuilds
711

812
permissions:
913
contents: read
@@ -17,11 +21,15 @@ concurrency:
1721
jobs:
1822
build:
1923
runs-on: ubuntu-latest
24+
# Only build on a successful publish, or when triggered manually.
25+
if: >
26+
github.event_name == 'workflow_dispatch'
27+
|| github.event.workflow_run.conclusion == 'success'
2028
steps:
21-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v5
2230

2331
- name: Install uv
24-
uses: astral-sh/setup-uv@v4
32+
uses: astral-sh/setup-uv@v8.2.0
2533

2634
- name: Set up Python
2735
run: uv python install 3.12
@@ -33,7 +41,7 @@ jobs:
3341
run: uv run mkdocs build
3442

3543
- name: Upload artifact
36-
uses: actions/upload-pages-artifact@v3
44+
uses: actions/upload-pages-artifact@v5
3745
with:
3846
path: site
3947

@@ -42,8 +50,10 @@ jobs:
4250
runs-on: ubuntu-latest
4351
environment:
4452
name: github-pages
45-
url: ${{ steps.deployment.outputs.page_url }}
53+
# Canonical public URL; deploy-pages' page_url output reports GitHub's
54+
# internal *.pages.github.io alias for org repos, so hardcode it.
55+
url: https://pnnl.github.io/comcheckweb-api-python/
4656
steps:
4757
- name: Deploy to GitHub Pages
4858
id: deployment
49-
uses: actions/deploy-pages@v4
59+
uses: actions/deploy-pages@v5

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
environment: pypi
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919

2020
- name: Install uv
21-
uses: astral-sh/setup-uv@v4
21+
uses: astral-sh/setup-uv@v8.2.0
2222

2323
- name: Set version (if provided)
2424
if: ${{ inputs.version != '' }}

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
# Run the offline test suite on every PR into main or develop (and on pushes
4+
# to those branches). Live API tests skip automatically without a key.
5+
on:
6+
pull_request:
7+
branches:
8+
- main
9+
- develop
10+
push:
11+
branches:
12+
- main
13+
- develop
14+
workflow_dispatch:
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v5
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v8.2.0
24+
25+
- name: Set up Python
26+
run: uv python install 3.12
27+
28+
- name: Install dependencies
29+
run: uv sync
30+
31+
- name: Run tests
32+
run: uv run pytest -q

CHANGELOG.md

Lines changed: 0 additions & 123 deletions
This file was deleted.

README.md

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,32 @@ Pass `--global` to install into the user-global skills dirs
145145
(`~/.claude/skills/` and/or `~/.agents/skills/`) for every session
146146
instead of per-project.
147147

148+
## Support
149+
150+
This is a publicly available library maintained by PNNL. While the code is open source and free to use, **external contributions are not accepted** at this time.
151+
152+
### Reporting Issues
153+
154+
If you encounter bugs or have questions:
155+
- Open an issue on GitHub for bug reports
156+
- Check the [examples/](examples/) directory for usage guidance
157+
- Review the [documentation](https://pnnl.github.io/comcheckweb-api-python/) for detailed information
158+
159+
**Note:** Issues are welcome, but pull requests from external contributors will not be accepted.
160+
161+
## License
162+
163+
See the `LICENSE` file at the repository root for license details.
164+
165+
See the [`DISCLAIMER.md`](DISCLAIMER.md) file for the warranty and
166+
liability disclaimer.
167+
168+
---
169+
170+
> **Note:** The sections below are for the PNNL team that maintains this
171+
> package. External contributions and pull requests are not accepted, so
172+
> this tooling is not required to *use* the published package.
173+
148174
## Development
149175

150176
Clone the repository and follow the commands below to set up developer tooling.
@@ -197,20 +223,3 @@ uv run mkdocs build
197223
# Fail on warnings (good before committing)
198224
uv run mkdocs build --strict
199225
```
200-
201-
## Support
202-
203-
This is a publicly available library maintained by PNNL. While the code is open source and free to use, **external contributions are not accepted** at this time.
204-
205-
### Reporting Issues
206-
207-
If you encounter bugs or have questions:
208-
- Open an issue on GitHub for bug reports
209-
- Check the [examples/](examples/) directory for usage guidance
210-
- Review the [documentation](docs/) for detailed information
211-
212-
**Note:** Issues are welcome, but pull requests from external contributors will not be accepted.
213-
214-
## License
215-
216-
See the `LICENSE` file at the repository root for license details.

examples/README.md

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ examples/
1010
├── client/ # API client examples
1111
│ ├── simulation.py # Simulation API workflow examples
1212
│ └── user_functions.py # User-facing function examples
13-
├── data_manager/ # Data manager examples
14-
│ ├── building_area.py # Building area manager examples
15-
│ └── envelope.py # Envelope manager examples
1613
└── project_operations/ # Project operations examples
1714
├── building_area_operations.py # Building area operations
1815
└── envelope_operations.py # Envelope operations
@@ -51,36 +48,7 @@ python examples/client/user_functions.py
5148

5249
---
5350

54-
### 2. Data Manager Examples (`data_manager/`)
55-
Examples demonstrating data manager functionality.
56-
57-
#### Building Area Manager (`data_manager/building_area.py`)
58-
Examples for building area manager operations.
59-
60-
**What it demonstrates:**
61-
- Building area list management
62-
- Building area data operations
63-
64-
**Usage:**
65-
```bash
66-
python examples/data_manager/building_area.py
67-
```
68-
69-
#### Envelope Manager (`data_manager/envelope.py`)
70-
Examples for envelope component management.
71-
72-
**What it demonstrates:**
73-
- Envelope component list management
74-
- Envelope data operations
75-
76-
**Usage:**
77-
```bash
78-
python examples/data_manager/envelope.py
79-
```
80-
81-
---
82-
83-
### 3. Project Operations Examples (`project_operations/`)
51+
### 2. Project Operations Examples (`project_operations/`)
8452
Examples demonstrating project operations.
8553

8654
#### Building Area Operations (`project_operations/building_area_operations.py`)
@@ -123,9 +91,8 @@ Creates JSON snapshots in `testProjectJson/` directory showing project state aft
12391
## Best Practices
12492

12593
1. **Start with client examples** (`client/`) to understand basic API operations
126-
2. **Explore data manager examples** (`data_manager/`) to learn about data management
127-
3. **Use project operations examples** (`project_operations/`) for end-to-end workflows
128-
4. **Check example output** in `testProjectJson/` to understand the results
94+
2. **Use project operations examples** (`project_operations/`) for end-to-end workflows
95+
3. **Check example output** in `testProjectJson/` to understand the results
12996

13097
---
13198

examples/data_manager/building_area.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/data_manager/envelope.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Automated test suite for the COMcheck API Python client using pytest.
44

5-
For ad-hoc manual testing during development, see the [scripts/](../scripts/) directory.
5+
For ad-hoc manual testing during development, see the [tools/scripts/](../tools/scripts/) directory.
66

77
## Directory Structure
88

0 commit comments

Comments
 (0)