Merge pull request #54 from kamangir/Sentinel-2-watch-refactors-2024-β¦ #952
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: bashtest | |
on: [push] | |
jobs: | |
bashtest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -e . | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ca-central-1 | |
- name: Install GDAL | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gdal-bin python3-gdal | |
- name: Run bash tests | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
ABCLI_AWS_RDS_HOST: ${{ secrets.ABCLI_AWS_RDS_HOST }} | |
ABCLI_AWS_RDS_PASSWORD: ${{ secrets.ABCLI_AWS_RDS_PASSWORD }} | |
FIRMS_MAP_KEY: ${{ secrets.FIRMS_MAP_KEY }} | |
run: | | |
echo "AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID" | |
echo "AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY" | |
echo "ABCLI_AWS_RDS_HOST: $ABCLI_AWS_RDS_HOST" | |
echo "ABCLI_AWS_RDS_PASSWORD: $ABCLI_AWS_RDS_PASSWORD" | |
echo "FIRMS_MAP_KEY: $FIRMS_MAP_KEY" | |
./.github/workflows/bashtest.sh blue_geo | |