Skip to content
Merged
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
21 changes: 14 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
os: [ macOS-latest ]
python-version: [ "3.9", "3.10" ]
python-version: [ "3.10", "3.11", "3.12" ]

steps:

Expand All @@ -42,14 +42,21 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
run: pipx install uv

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -r requirements.txt
run: |
uv sync
source .venv/bin/activate
uv pip install -e .

- name: Run pytests
run: pytest -v --color=yes tests/
run: |
source .venv/bin/activate
pytest -v --color=yes tests/

- name: Test notebooks
run: pytest -v --color=yes --nbmake examples/envs/
run: |
source .venv/bin/activate
pytest -v --color=yes --nbmake examples/envs/
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,17 @@ are available in the [`paper`](./paper) directory.

Env setup:

```
conda create -n gridworld python=3.8 -y
conda activate gridworld
Note: As of August 2025, We have migrated the build tool to `uv`.

```
git clone git@github.com:NREL/PowerGridworld.git
cd PowerGridWorld
pip install -e .
pip install -r requirements.txt
uv venv
source .venv/bin/activate
uv sync --python 3.11
uv pip install -e .
```

We have also added a `pyproject.toml` file to support the use of [poetry](https://python-poetry.org/docs/). If using poetry, simply do `poetry install`.

Run the pytests to sanity check:

```
Expand Down
Loading
Loading