Skip to content

Commit

Permalink
Merge pull request #1212 from gboeing/test
Browse files Browse the repository at this point in the history
add test for latest pre-releases of dependencies
  • Loading branch information
gboeing authored Aug 20, 2024
2 parents ee25b6b + b8995a9 commit 810a69d
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test latest/pre-release dependency versions

on:
schedule:
- cron: "0 7 * * 1" # every monday at 07:00 UTC
workflow_dispatch:

jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

defaults:
run:
shell: bash -elo pipefail {0}

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
cache: "pip"

- name: Install OSMnx with dependency pre-releases
run: |
python -m pip install --pre -r ./environments/tests/requirements-test-latest.txt
python -m pip install -e .
python -m pip list -v
python -m pip show osmnx
python --version
- name: Test code
run: pytest --verbose --maxfail=1
26 changes: 26 additions & 0 deletions environments/tests/requirements-test-latest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# requirements
geopandas
networkx
numpy
pandas
requests
shapely

# extras
matplotlib
rasterio
rio-vrt
scikit-learn
scipy

# linting/testing
lxml
pre-commit
pytest
pytest-cov
typeguard

# docs
furo
sphinx == 7.*
sphinx-autodoc-typehints

0 comments on commit 810a69d

Please sign in to comment.