Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
7242338
Merge pull request #14 from GRIDAPPSD/develop
tonya1 Sep 10, 2020
efb6b40
Merge pull request #15 from GRIDAPPSD/releases/2020.08.0
tonya1 Sep 10, 2020
cce2800
Merge pull request #17 from GRIDAPPSD/develop
tonya1 Nov 6, 2020
850ec18
Merge pull request #19 from GRIDAPPSD/releases/2020.09.0
tonya1 Dec 2, 2020
77c351e
Merge pull request #23 from GRIDAPPSD/releases/2020.12.0
poorva1209 Feb 22, 2021
e667024
Merge pull request #28 from GRIDAPPSD/releases/2021.02.0
tonya1 Mar 13, 2021
952476b
Merge pull request #32 from GRIDAPPSD/releases/2021.04.0
tonya1 May 18, 2021
72fa866
Merge pull request #35 from GRIDAPPSD/releases/2021.08.1
tonya1 Aug 28, 2021
cef9801
Merge pull request #37 from GRIDAPPSD/releases/2021.09.0
tonya1 Oct 16, 2021
3931b88
Merge pull request #38 from GRIDAPPSD/releases/2023.07.0
tonya1 Aug 4, 2023
ed7c815
Changed tests that use 9500new model to use 9500final
tdtalbot May 30, 2024
671b6ff
Updating baseline files
tdtalbot Jun 13, 2024
2982454
Change 9500 and 123 model tests so that they run in real time, otherw…
tdtalbot Jun 26, 2024
ad21b87
updated baseline file for 123 simulation to match latest model
tdtalbot Jun 26, 2024
c9f2f88
Added 123 model back into the simlation test
tdtalbot Jun 26, 2024
4eb5d0e
Updating 9500 baseline file
tdtalbot Jun 26, 2024
74f6080
Adding cimgraph functionality to test alarm api
tdtalbot Sep 4, 2024
25cf2c3
Fixing EOL for the selected files
tdtalbot Sep 4, 2024
56caea6
Switching configs to use final 9500 node
tdtalbot Sep 4, 2024
1a630d9
Fixing logging api test by parsing json response if necessary
tdtalbot Sep 4, 2024
6630dc4
Forgot the import
tdtalbot Sep 4, 2024
b736e80
Fix for timeseries test where result is string rather than json
tdtalbot Sep 4, 2024
b50c881
Additional debugging added to timeseries test
tdtalbot Sep 5, 2024
5b7109f
Updates for test_timeseries
tdtalbot Sep 20, 2024
e6f4d33
Recommiting to hopefully get the permissions in place
tdtalbot Sep 20, 2024
b5f4a3a
Added back in line that was needed
tdtalbot Sep 20, 2024
1ef581a
Updated result files
tdtalbot Sep 20, 2024
16826f5
Adding change to force update
tdtalbot Sep 20, 2024
43f545f
Removed since these aren't actually used, instead they are under grid…
tdtalbot Sep 20, 2024
d1fce75
When realtime is false we don't always get all the measurements
tdtalbot Sep 20, 2024
6ce3589
Looks like the sh files should actually be under conf/
tdtalbot Sep 20, 2024
0a5a285
Are these actually needed in both places?
tdtalbot Sep 20, 2024
e0bed7d
Changing File Permissions
tdtalbot Sep 20, 2024
96f4cef
Not actually needed
tdtalbot Sep 20, 2024
ec9c47d
Updates to testing files
tdtalbot Feb 13, 2025
9f74eab
Updated configs for testing, mostly removing _ at the beginning of UU…
tdtalbot Mar 11, 2025
4f7b312
Add test for distributed api
Jun 25, 2025
52557a2
Create runtest.yml
tdtalbot Jun 25, 2025
e6b8151
Rename pytest.yml to pytest.yml.old
tdtalbot Jun 25, 2025
604bf92
Update runtest.yml
tdtalbot Jun 25, 2025
93d9919
Update runtest.yml
tdtalbot Jun 25, 2025
861a1f2
Update runtest.yml
tdtalbot Jun 25, 2025
f62170d
Update runtest.yml
tdtalbot Jun 25, 2025
6eaccab
upgrade to newer version of cimgraph which fixes issues when runnign …
Jul 23, 2025
dbaf3d1
Merge branch 'model-correction' of https://github.com/GRIDAPPSD/grida…
Jul 23, 2025
5886b68
Adding information to the baseline for the ieee123_apps model
Jul 29, 2025
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
File renamed without changes.
36 changes: 36 additions & 0 deletions .github/workflows/runtest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Python Tests

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.10.18]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install py
pip install -r requirements.txt

- name: Integration Tests
env:
GRIDAPPSD_USER: ${{ secrets.GRIDAPPSD_USER }}
GRIDAPPSD_PASSWORD: ${{ secrets.GRIDAPPSD_PASSWORD }}
run: |
pytest -rA --html=out/${{ env.RESULTS }} --self-contained-html --timeout=2700
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ export GRIDAPPSD_PASSWORD=<password>

# run pytest
pytest -s

#(If you need to run the pytest command using sudo make sure to include the -E flag to include environment variables)
12 changes: 6 additions & 6 deletions assumptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,12 @@ def get_switch_mrids(gridappsd_obj, mrid):
SELECT ?name ?basev ?bus1 ?bus2 ?open ?fdrid ?continuous ?breaking (group_concat(distinct ?phs;separator="\n") as ?phases) WHERE {
?s r:type c:LoadBreakSwitch.
# feeder selection options - if all commented out, query matches all feeders
#VALUES ?fdrid {"_C1C3E687-6FFD-C753-582B-632A27E28507"} # 123 bus
#VALUES ?fdrid {"_49AD8E07-3BF9-A4E2-CB8F-C3722F837B62"} # 13 bus
#VALUES ?fdrid {"_5B816B93-7A5F-B64C-8460-47C17D6E4B0F"} # 13 bus assets
VALUES ?fdrid {"_4F76A5F9-271D-9EB8-5E31-AA362D86F2C3"} # 8500 node
#VALUES ?fdrid {"_67AB291F-DCCD-31B7-B499-338206B9828F"} # J1
#VALUES ?fdrid {"_9CE150A8-8CC5-A0F9-B67E-BBD8C79D3095"} # R2 12.47 3
#VALUES ?fdrid {"C1C3E687-6FFD-C753-582B-632A27E28507"} # 123 bus
#VALUES ?fdrid {"49AD8E07-3BF9-A4E2-CB8F-C3722F837B62"} # 13 bus
#VALUES ?fdrid {"5B816B93-7A5F-B64C-8460-47C17D6E4B0F"} # 13 bus assets
VALUES ?fdrid {"4F76A5F9-271D-9EB8-5E31-AA362D86F2C3"} # 8500 node
#VALUES ?fdrid {"67AB291F-DCCD-31B7-B499-338206B9828F"} # J1
#VALUES ?fdrid {"9CE150A8-8CC5-A0F9-B67E-BBD8C79D3095"} # R2 12.47 3
?s c:Equipment.EquipmentContainer ?fdr.
?fdr c:IdentifiedObject.mRID ?fdrid.
?s c:IdentifiedObject.name ?name.
Expand Down
25 changes: 0 additions & 25 deletions conf/entrypoint.sh

This file was deleted.

42 changes: 0 additions & 42 deletions conf/run-gridappsd.sh

This file was deleted.

8 changes: 4 additions & 4 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pytest

from gridappsd import GridAPPSD, GOSS
from gridappsd.docker_handler import run_dependency_containers, run_gridappsd_container, Containers
from docker_handler import run_dependency_containers, run_gridappsd_container, Containers

levels = dict(
CRITICAL=50,
Expand Down Expand Up @@ -42,17 +42,17 @@
STOP_CONTAINER_AFTER_TEST = os.environ.get('GRIDAPPSD_STOP_CONTAINERS_AFTER_TESTS', True)



@pytest.fixture(scope="module")
def docker_dependencies():
print("Docker dependencies")
# Containers.reset_all_containers()

with run_dependency_containers(stop_after=STOP_CONTAINER_AFTER_TEST) as dep:
yield dep
print("Cleanup docker dependencies")

@pytest.fixture
def gridappsd_client(request, docker_dependencies):

with run_gridappsd_container(stop_after=STOP_CONTAINER_AFTER_TEST):
gappsd = GridAPPSD()
gappsd.connect()
Expand All @@ -62,7 +62,6 @@ def gridappsd_client(request, docker_dependencies):
if request.cls is not None:
request.cls.gridappsd_client = gappsd
yield gappsd

gappsd.disconnect()

@pytest.fixture
Expand Down Expand Up @@ -154,3 +153,4 @@ def pytest_runtest_makereport(item, call):
outcome = yield
report = outcome.get_result()
report.description = str(item.function.__doc__)

Loading
Loading