Skip to content

Commit

Permalink
Added environment variables to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
arshdoda committed Jun 28, 2024
1 parent da8757e commit c5ad53c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 27 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/dev_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,23 @@ jobs:
python-version: ["3.10"]

steps:

- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set GOOGLE_APPLICATION_USER env
run: echo "GOOGLE_APPLICATION_USER=$(echo $GOOGLE_APPLICATION_USER | cut -c 1-6)" >> $GITHUB_ENV
- name: Set GOOGLE_APPLICATION_CREDENTIALS env
run: echo "GOOGLE_APPLICATION_CREDENTIALS=$(echo $GOOGLE_APPLICATION_CREDENTIALS | cut -c 1-6)" >> $GITHUB_ENV
- name: Install Linux dependencies
run: |
sudo apt update
sudo apt install gdal-bin libgdal-dev
- name: Install Dependencies
sudo apt install -y gdal-bin libgdal-dev
- name: Install Packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r .github/requirements.txt
pip install GDAL==`gdal-config --version`
- name: Run Tests
env:
GOOGLE_APPLICATION_USER: ${{ secrets.GOOGLE_APPLICATION_USER }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: |
pytest tests
pytest tests
18 changes: 0 additions & 18 deletions requirements.txt

This file was deleted.

0 comments on commit c5ad53c

Please sign in to comment.