Skip to content

Commit 5f1a455

Browse files
hmgaudeckerclaude
andauthored
Add CI, dependabot, issue/PR templates for public repo (#1)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c91875d commit 5f1a455

14 files changed

Lines changed: 211 additions & 79 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug Report
3+
about: Create a bug report to help us improve aca-model
4+
title: "BUG:"
5+
type: "Bug"
6+
---
7+
8+
- [ ] I have checked that this issue has not already been reported.
9+
10+
- [ ] I have confirmed this bug exists on the latest version of aca-model.
11+
12+
- [ ] (optional) I have confirmed this bug exists on the `main` branch of aca-model.
13+
14+
---
15+
16+
**Note**: Please read [this
17+
guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing
18+
how to provide the necessary information for us to reproduce your bug.
19+
20+
#### Code Sample, a copy-pastable example
21+
22+
```python
23+
# Your code here
24+
```
25+
26+
#### Problem description
27+
28+
Explain **why** the current behaviour is a problem and why the expected output is a
29+
better solution.
30+
31+
#### Expected Output
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Enhancement
3+
about: Suggest an idea for aca-model
4+
title: "ENH:"
5+
---
6+
7+
> [!IMPORTANT]
8+
> Select **one** of the following types to describe your enhancement:
9+
> - **Feature**: A new feature or capability
10+
> - **Task**: A task that needs to be done (e.g., fix typos in the documentation)
11+
>
12+
> If your enhancement is related to the documentation, select the label
13+
> **documentation**.
14+
15+
16+
#### Is your feature request related to a problem?
17+
18+
Provide a description of what the problem is, e.g. "I wish I could use aca-model to do
19+
[...]".
20+
21+
#### Describe the solution you'd like
22+
23+
Provide a description of the feature request and how it might be implemented.
24+
25+
#### API breaking implications
26+
27+
Provide a description of how this feature will affect the API.
28+
29+
#### Describe alternatives you've considered
30+
31+
Provide a description of any alternative solutions or features you've considered.
32+
33+
#### Additional context
34+
35+
Add any other context, code examples, or references to existing implementations about
36+
the feature request here.
37+
38+
```python
39+
# Your code here, if applicable
40+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### What problem do you want to solve?
2+
3+
Reference the issue or discussion, if there is any. Provide a description of your
4+
proposed solution.
5+
6+
### Todo
7+
8+
- [ ] Target the right branch and pick an appropriate title.
9+
- [ ] Put `Closes #XXXX` in the first PR comment to auto-close the relevant issue once
10+
the PR is accepted. This is not applicable if there is no corresponding issue.
11+
- [ ] Any steps that still need to be done.

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: monthly
8+
groups:
9+
github-actions:
10+
patterns:
11+
- '*'

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: main
3+
concurrency:
4+
group: ${{ github.head_ref || github.run_id }}
5+
cancel-in-progress: true
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- '**'
13+
jobs:
14+
run-tests:
15+
name: Run tests on ${{ matrix.os }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os:
21+
- ubuntu-latest
22+
python-version:
23+
- '3.14'
24+
steps:
25+
- uses: actions/checkout@v6
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install pylcm (unreleased feature branch required)
30+
run: >-
31+
pip install "pylcm @
32+
git+https://github.com/OpenSourceEconomics/pylcm.git@feature/h-consumes-dag-outputs"
33+
- name: Install aca-model with test deps
34+
run: pip install -e . pytest pdbp
35+
- name: Run pytest
36+
run: pytest tests

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2026 The aca-model Authors
1+
Copyright (c) 2026 Hans-Martin von Gaudecker
22

33
Apache License
44
Version 2.0, January 2004

scripts/generate_benchmark_params.py

Lines changed: 0 additions & 70 deletions
This file was deleted.
File renamed without changes.

src/aca_model/benchmark.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
continuous state). Use for ASV benchmarks and fast end-to-end
66
integration tests without requiring the aca-data pipeline.
77
8-
Parameters (`fixed_params` + `params`) are a frozen snapshot of one
9-
production run, shipped as a pickle in
10-
`aca-model/tests/data/benchmark_params.pkl`. Regenerate via
11-
`scripts/generate_benchmark_params.py` after changes to parameter
12-
assembly.
8+
Parameters (`fixed_params` + `params`) are a committed stub fixture
9+
packaged alongside the module at
10+
`src/aca_model/_benchmark_data/benchmark_params.pkl` — aggregate-level
11+
values (policy schedules, transition probabilities, fitted
12+
coefficients) with no runtime dependency on aca-data or any data-prep
13+
package.
1314
1415
Initial conditions are drawn randomly per call — assets/aime/wage_res
1516
from their grid ranges, discrete states from their categories, regimes
@@ -33,7 +34,7 @@
3334
from aca_model.config import BENCHMARK_GRID_CONFIG
3435

3536
_PARAMS_FILE = (
36-
Path(__file__).resolve().parents[2] / "tests" / "data" / "benchmark_params.pkl"
37+
Path(__file__).resolve().parent / "_benchmark_data" / "benchmark_params.pkl"
3738
)
3839

3940
_DERIVED_CATEGORICALS = {

0 commit comments

Comments
 (0)