Fix geopandas datasets deprecated #223
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Run pytest on the package | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
build: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
lfs: 'true' | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.10 | |
timeout-minutes: 30 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest | |
pip install nbmake pytest-xdist | |
pip install configparser | |
python3 -c "import configparser; c = configparser.ConfigParser(); c.read('setup.cfg'); print(c['options']['install_requires'])" | xargs pip install | |
pip install geodatasets | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 starepandas/ --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Test with pytest | |
run: | | |
pytest | |
- name: Test Notebooks | |
run: | | |
python -m ipykernel install --user --name testkernel | |
pip install . | |
pip install ipympl | |
# pip install /home/runner/work/STAREPandas/ | |
pytest --nbmake --nbmake-kernel=testkernel examples/*.ipynb | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
#if: ${{ github.event_name == 'pull_request' && inputs.debug_enabled }} | |
#if: ${{ failure() }} | |
if: false |