Skip to content

Commit

Permalink
Merge pull request #847 from slowy07/workflow-testing
Browse files Browse the repository at this point in the history
chore: attemp to testing using pytest
  • Loading branch information
slowy07 committed Jul 24, 2024
2 parents 84657cd + be6c8f3 commit 59f3373
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
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

0 comments on commit 59f3373

Please sign in to comment.