Skip to content

Commit

Permalink
Revert to configuring our own environment
Browse files Browse the repository at this point in the history
  • Loading branch information
zacdezgeo committed Jan 14, 2025
1 parent 60c0e0b commit ba31920
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,25 @@ on:
jobs:
test:
runs-on: ubuntu-latest
container:
image: qgis/qgis:ltr
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Set up QGIS environment
run: |
sudo apt update
sudo apt install -y qgis python3-qgis python3-pyqt5 python3-pytest
- name: Set Environment Variables
run: |
echo "QGIS_HOME=/usr" >> $GITHUB_ENV
echo "PYTHONPATH=$QGIS_HOME/share/qgis/python" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$QGIS_HOME/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "QT_QPA_PLATFORM=offscreen" >> $GITHUB_ENV
echo "DISPLAY=:99" >> $GITHUB_ENV
- name: Start Virtual Display
run: Xvfb :99 -screen 0 1024x768x24 &

- name: Configure Earth Engine Credentials # TODO: add secret to github
- name: Configure Earth Engine Credentials
run: |
mkdir -p ~/.config/earthengine
echo '${{ secrets.EE_CREDENTIALS_JSON }}' > ~/.config/earthengine/credentials
Expand Down

0 comments on commit ba31920

Please sign in to comment.