Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: attemp to testing using pytest #847

Merged
merged 7 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Testing Leafmap Package

on:
push:
branches:
Expand All @@ -6,7 +8,6 @@ on:
branches:
- master

name: Linux build
jobs:
test-ubuntu:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -69,6 +70,14 @@ jobs:
run: |
# pip install -r requirements.txt -r requirements_dev.txt
pip install .
pip install pytest
pip install geopandas
pip install pmtiles
pip install -r requirements_dev.txt

- name: Test import
run: python -c "import leafmap; print('leafmap import successful')"

- name: Running pytest
run: |
pytest . --verbose
23 changes: 21 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Testing Leafmap Package (windows)

on:
push:
branches:
- master
pull_request:
branches:
- master

name: Windows build
jobs:
test-windows:
runs-on: windows-latest
Expand All @@ -18,6 +18,17 @@ jobs:
run:
shell: bash -el {0}

env:
PLANET_API_KEY: ${{ secrets.PLANET_API_KEY }}
USE_FOLIUM: ${{ secrets.USE_FOLIUM }}
USE_MKDOCS: ${{ secrets.USE_MKDOCS }}
HEREMAPS_API_KEY: ${{ secrets.HEREMAPS_API_KEY }}
DP_TOKEN: ${{ secrets.DP_TOKEN }}
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -57,6 +68,14 @@ jobs:
run: |
pip install -r requirements.txt
pip install .
pip install pytest
pip install geopandas
pip install pmtiles
pip install -r requirements_dev.txt

- name: Test import
run: python -c "import leafmap; print('leafmap import successful')"

- name: Testing with pytest
run: |
pytest . --verbose
Loading