Skip to content

Commit

Permalink
set secret environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mdp0023 committed Apr 17, 2024
1 parent 1ab9eb8 commit 4a9bda5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/compatability_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
pip install .[minimum]
fi
- name: Test with pytest
env:
API_KEY: ${{ secrets.API_KEY }}
run: |
pip install pytest
pytest
5 changes: 1 addition & 4 deletions tests/test_svinsight.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,11 @@ def run_svi_workflow(project, boundary, year, overwrite=True):
def project():
return svi(project_name, file_path, api_key, geoids)


api_key = os.getenv('CENSUS_API_KEY')
##############################################################################################
# develop a test project for single county
project_name = 'test_project_single_county'
file_path = os.path.dirname(os.path.realpath(__file__))
api_key = os.getenv('CENSUS_API_KEY')
geoids = ['48453']
boundaries = ['bg', 'tract']
years = [2015, 2020]
Expand All @@ -139,7 +138,6 @@ def test_single_county_project(project, boundary, year, overwrite=False):
# develop a test project for multiple counties
project_name = 'test_project_multiple_counties'
file_path = os.path.dirname(os.path.realpath(__file__))
api_key = os.getenv('CENSUS_API_KEY')
geoids = ['48453','21117']
boundaries = ['bg', 'tract']
years = [2015, 2020]
Expand All @@ -155,7 +153,6 @@ def test_multiple_county_project(project, boundary, year, overwrite=False):
# develop a test project for multiple states
project_name = 'test_project_multiple_states'
file_path = os.path.dirname(os.path.realpath(__file__))
api_key = os.getenv('CENSUS_API_KEY')
geoids = ['25','44']
boundaries = ['bg', 'tract']
years = [2015]
Expand Down

0 comments on commit 4a9bda5

Please sign in to comment.