Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidovichmarcos committed Aug 14, 2024
1 parent a380655 commit ca25da1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 32 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,28 @@ env:

jobs:
run_unit_tests:
strategy:
fail-fast: false
matrix:
env: [environment-notebooks.yml]
runs-on: ubuntu-latest
steps:
- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCP_DATAFLOW_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: Checkout branch
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install pip
run: python -m ensurepip --upgrade
- name: Install dependencies
run: pip install -r requirements-notebooks-test.txt
- name: Use the kernel
run: python -m ipykernel install --user --name=venv
- name: Run unit tests
run: pytest tests/test_notebooks.py -s
env:
ER_USERNAME: ${{ secrets.ER_USERNAME }}
ER_PASSWORD: ${{ secrets.ER_PASSWORD }}
GCP_DATAFLOW_SERVICE_KEY: ${{ secrets.GCP_DATAFLOW_SERVICE_KEY }}
28 changes: 0 additions & 28 deletions environment-notebooks.yml

This file was deleted.

7 changes: 7 additions & 0 deletions requirements-notebooks-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pip-tools
pytest
papermill
folium
branca
ecoscope[all]
ipykernel

0 comments on commit ca25da1

Please sign in to comment.