Skip to content

Commit d9379b3

Browse files
committed
Disabled unit tests for now so we can open source
1 parent 499d511 commit d9379b3

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/enroads.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ jobs:
2222
python -m pip install --upgrade pip
2323
pip install pylint flake8
2424
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25-
- name: Download En-ROADS sdk
26-
run: python -m enroadspy.load_sdk
25+
# Temporarily disabled until we sort out S3 access
26+
# - name: Download En-ROADS sdk
27+
# run: python -m enroadspy.load_sdk
2728
- name: Lint with PyLint
2829
run: pylint .
2930
- name: Lint with Flake8
3031
run: flake8
31-
- name: Run unit tests
32-
run: python -m unittest
32+
# - name: Run unit tests
33+
# run: python -m unittest
3334

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Immediate action is required to combat climate change. The technology behind [Co
44

55
## En-ROADS Wrapper
66

7-
En-ROADS is a climate change simulator developed by [Climate Interactive](https://www.climateinteractive.org/). We have created a wrapper around the SDK to make it simple to use in a Python application which can be found in `enroadspy`. See `enroads_runner.py` for the main class that runs the SDK. The SDK is not included in this repository and access to it is very limited. If you would like to use this code, please contact Project Resilience at [daniel.young2@cognizant.com](mailto:daniel.young2@cognizant.com).
7+
En-ROADS is a climate change simulator developed by [Climate Interactive](https://www.climateinteractive.org/). We have created a wrapper around the SDK to make it simple to use in a Python application which can be found in `enroadspy`. See `enroads_runner.py` for the main class that runs the SDK. The SDK is not included in this repository and access to it is very limited. If you would like to run this code, please contact Project Resilience at [daniel.young2@cognizant.com](mailto:daniel.young2@cognizant.com).
88

99
### Installation
1010
This project was created with Python 3.10.14. Run `pip install -r requirements.txt` to install the required packages. Then run `python -m enroadspy.download_sdk` to download the SDK. In order to download the SDK environment variables must be set.

enroadspy/load_sdk.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""
22
Setup script to load the En-ROADS SDK from the S3 bucket. This is used for app deployment and testing.
3-
Note: This script requires access to the private S3 bucket where the SDK is stored. If you would like access to the
4-
SDK to run the full project, see the README in order to contact a member of Project Resilience.
3+
Note: This script requires access to the private S3 bucket where the SDK is stored. The SDK is not currently available
4+
for general use. If you would like to run the full project, see the README in order to contact a member of Project
5+
Resilience.
56
"""
67
import os
78
import zipfile

0 commit comments

Comments
 (0)