Skip to content

Commit b8887c7

Browse files
Merge pull request #7 from ShengrenHOU/codex/xiaohou/actor-mip-governance-review
Refactor Actor_MIP integration and add repo governance
2 parents 080622a + 7b7b7e5 commit b8887c7

22 files changed

Lines changed: 1492 additions & 640 deletions

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
checks:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.11"
16+
17+
- name: Install runtime dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
python -m pip install numpy pandas
21+
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
22+
23+
- name: Install development dependencies
24+
run: python -m pip install -r requirements-dev.txt
25+
26+
- name: Ruff
27+
run: ruff check .
28+
29+
- name: Pytest
30+
env:
31+
MIP_DQN_ENABLE_WANDB: "0"
32+
MIP_DQN_USE_ACTOR_MIP: "0"
33+
run: pytest
34+

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.idea/
2+
__pycache__/
3+
.pytest_cache/
4+
.ruff_cache/
5+
.mypy_cache/
6+
*.pyc
7+
*.pyo
8+
*.pth
9+
*.pkl
10+
wandb/
11+
AgentMIPDQN/
12+

.idea/.gitignore

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

.idea/Optimal-Energy-System-Scheduling-Combining-Mixed-Integer-Programming-and-Deep-Reinforcement-Learning.iml

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

.idea/deployment.xml

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

.idea/inspectionProfiles/profiles_settings.xml

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

.idea/misc.xml

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

.idea/modules.xml

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

.idea/vcs.xml

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

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.11.2
4+
hooks:
5+
- id: ruff

0 commit comments

Comments
 (0)