Skip to content

Commit

Permalink
fix: use mapillary api key secret in github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ofr1tz committed Dec 3, 2024
1 parent 816b1e6 commit f287b3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
POSTGRES_DB: postgres
OSMCHA_API_KEY: ${{ secrets.OSMCHA_API_KEY }}
DJANGO_SECRET_KEY: test-django-secret-key
MAPILLARY_API_KEY: test-mapillary-api-key
MAPILLARY_API_KEY: ${{ secrets.MAPILLARY_API_KEY }}
COMPOSE_FILE: ../docker-compose.yaml:../docker-compose-ci.yaml
run: |
docker compose run --rm mapswipe_workers_creation python -m unittest discover --verbose --start-directory tests/unittests/
Expand Down
2 changes: 1 addition & 1 deletion mapswipe_workers/mapswipe_workers/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
OSMCHA_API_LINK = "https://osmcha.org/api/v1/"
OSMCHA_API_KEY = os.environ["OSMCHA_API_KEY"]
MAPILLARY_API_LINK = "https://tiles.mapillary.com/maps/vtp/mly1_computed_public/2/"
MAPILLARY_API_KEY = os.getenv("MAPILLARY_API_KEY")
MAPILLARY_API_KEY = os.environ("MAPILLARY_API_KEY")

# number of geometries for project geometries
MAX_INPUT_GEOMETRIES = 10
Expand Down

0 comments on commit f287b3a

Please sign in to comment.