chore(deps): update osmnx requirement from <2 to <3 #257
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
name: Python | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-local-path: ${{ runner.temp }}/cache | |
- name: Set up Python | |
run: uv python install | |
- name: Install dependencies | |
run: uv sync | |
- name: Check formatting | |
run: bin/format | |
- name: Linting | |
run: bin/lint | |
- name: Run tests | |
run: bin/test -v --cov=registered --cov-fail-under=74 --cov-report=term --cov-report=html | |
env: | |
OSMNX_CACHE_DIR: ${{ runner.temp }}/cache/osmnx | |
- name: Check if coverage was reported | |
id: has-coverage | |
if: ${{ always() }} | |
run: test -d htmlcov && echo "exists=true" >> $GITHUB_STATE | |
- name: Upload coverage artifact | |
if: ${{ always() && steps.has-coverage.outputs.exists }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: python-coverage-report | |
path: htmlcov/ |