Skip to content

feat: update gitignore #9

feat: update gitignore

feat: update gitignore #9

name: Tests and Linters 🧪
on: [push, pull_request]
jobs:
tests-and-linters:
name: "Python 3.10 on instadeep-ci"
runs-on: instadeep-ci
container:
image: python:3.10
steps:
- name: Install dependencies for viewer test
run: apt-get update && apt-get install -y xvfb
- name: Checkout your repo 📦
uses: actions/checkout@v3
- 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