Refactoring Validation #22
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
name: Refactoring Validation | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
environment: RefactoringValidationEnv | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up credentials | |
run: | | |
echo "$GCP_SA_KEY" > ./.gee-sa-priv-key.json | |
env: | |
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }} | |
- name: Create directories for downloads | |
run: | | |
mkdir nodejs_downloads | |
mkdir python_downloads | |
- name: Build and run original library Docker container | |
run: | | |
docker build -f validation/Dockerfile.landsat_lst -t node_lst . | |
docker run -v ./.gee-sa-priv-key.json:/app/.gee-sa-priv-key.json -v $PWD/nodejs_downloads:/app/downloads node_lst | |
- name: Build and run current library Docker container | |
run: | | |
docker build -f validation/Dockerfile.ee_lst -t python_lst . | |
docker run -v ./.gee-sa-priv-key.json:/app/.gee-sa-priv-key.json -v $PWD/python_downloads:/app/downloads python_lst | |
- name: Install dependencies | |
run: pip install rasterio | |
- name: Compare results | |
run: python3 validation/geotiffs_comparison.py |