Update demo notebook 3 #12
Workflow file for this run
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: Tests and Linters 🧪 | |
on: [push, pull_request] | |
jobs: | |
tests-and-linters: | |
name: "Python 3.10 on Ubuntu Latest" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies for viewer test | |
run: apt-get update && apt-get install -y xvfb | |
- name: Checkout your repo 📦 | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install python dependencies 🔧 | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt \ | |
-r instageo/model/requirements.txt \ | |
-r instageo/data/requirements.txt \ | |
-r instageo/apps/requirements.txt | |
- run: git config --system --add safe.directory $GITHUB_WORKSPACE | |
- name: Run linters 🖌️ | |
run: pre-commit run --all-files --verbose | |
- name: Set PYTHONPATH | |
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)" >> $GITHUB_ENV | |
- name: Run tests 🧪 | |
env: | |
EARTHDATA_USERNAME: ${{ secrets.EARTHDATA_USERNAME }} | |
EARTHDATA_PASSWORD: ${{ secrets.EARTHDATA_PASSWORD }} | |
run: pytest --cov --cov-config=.coveragerc --cov-report=html --cov-report=term-missing --cov-fail-under=50 -m "not auth" | |
# - name: Test build docs 📖 | |
# run: mkdocs build --verbose --site-dir docs_public |