-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from NASA-IMPACT/develop
Release changes
- Loading branch information
Showing
40 changed files
with
1,743 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
|
@@ -36,8 +36,8 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
|
@@ -47,24 +47,23 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[dev,deploy,test] | ||
- name: Launch services | ||
run: AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} docker-compose up --build -d stac raster | ||
run: AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} docker compose up --build -d | ||
|
||
- name: Ingest Stac Items/Collection | ||
run: | | ||
pypgstac pgready --dsn postgresql://username:[email protected]:5432/postgis | ||
pypgstac load collections .github/workflows/data/noaa-emergency-response.json --dsn postgresql://username:[email protected]:5432/postgis --method insert | ||
pypgstac load items .github/workflows/data/noaa-eri-nashville2020.json --dsn postgresql://username:[email protected]:5432/postgis --method insert | ||
./scripts/load-data-container.sh | ||
- name: Sleep for 10 seconds | ||
run: sleep 10s | ||
shell: bash | ||
|
||
- name: Integrations tests | ||
run: python -m pytest .github/workflows/tests/ -vv -s | ||
|
||
- name: Stop services | ||
run: docker-compose stop | ||
run: docker compose stop | ||
|
||
deploy: | ||
needs: [test] | ||
|
@@ -76,7 +75,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
|
@@ -36,8 +36,8 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
|
@@ -47,24 +47,23 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[dev,deploy,test] | ||
- name: Launch services | ||
run: AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} docker-compose up --build -d stac raster | ||
run: AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} docker compose up --build -d | ||
|
||
- name: Ingest Stac Items/Collection | ||
run: | | ||
pypgstac pgready --dsn postgresql://username:[email protected]:5432/postgis | ||
pypgstac load collections .github/workflows/data/noaa-emergency-response.json --dsn postgresql://username:[email protected]:5432/postgis --method insert | ||
pypgstac load items .github/workflows/data/noaa-eri-nashville2020.json --dsn postgresql://username:[email protected]:5432/postgis --method insert | ||
./scripts/load-data-container.sh | ||
- name: Sleep for 10 seconds | ||
run: sleep 10s | ||
shell: bash | ||
|
||
- name: Integrations tests | ||
run: python -m pytest .github/workflows/tests/ -vv -s | ||
|
||
- name: Stop services | ||
run: docker-compose stop | ||
run: docker compose stop | ||
|
||
deploy: | ||
needs: [test] | ||
|
@@ -76,7 +75,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
|
@@ -24,7 +24,7 @@ jobs: | |
- name: Run pre-commit | ||
run: pre-commit run --all-files | ||
|
||
test: | ||
needs: [lint] | ||
runs-on: ubuntu-latest | ||
|
@@ -33,8 +33,8 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
|
@@ -44,41 +44,41 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[dev,deploy,test] | ||
- name: Launch services | ||
run: AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} docker-compose up --build -d stac raster | ||
run: AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} docker compose up --build -d | ||
|
||
- name: Ingest Stac Items/Collection | ||
run: | | ||
pypgstac pgready --dsn postgresql://username:[email protected]:5432/postgis | ||
pypgstac load collections .github/workflows/data/noaa-emergency-response.json --dsn postgresql://username:[email protected]:5432/postgis --method insert | ||
pypgstac load items .github/workflows/data/noaa-eri-nashville2020.json --dsn postgresql://username:[email protected]:5432/postgis --method insert | ||
./scripts/load-data-container.sh | ||
- name: Sleep for 10 seconds | ||
run: sleep 10s | ||
shell: bash | ||
|
||
- name: Integrations tests | ||
run: python -m pytest .github/workflows/tests/ -vv -s | ||
|
||
- name: Stop services | ||
run: docker-compose stop | ||
predeploy: | ||
run: docker compose stop | ||
|
||
predeploy: | ||
needs: [test] | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
python-version: '3.9' | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
with: | ||
node-version: 17 | ||
|
||
- name: Configure awscli | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
|
@@ -90,24 +90,24 @@ jobs: | |
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install CDK | ||
run: npm install -g aws-cdk@2 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }} | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[dev,deploy,test] | ||
python -m pip install -e .[dev,deploy,test] | ||
- name: Get dev environment configuration for develop branch | ||
run: ./scripts/get-env.sh "veda-backend-uah-dev-env" | ||
|
||
- name: Pre deployment CDK diff | ||
- name: Pre deployment CDK diff | ||
run: | | ||
echo $STAGE | ||
cdk diff veda-backend-uah-dev | ||
cdk diff veda-backend-uah-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.