Improve error messages #463
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main, v2] | |
schedule: | |
- cron: "0 6 * * 1" # Every Monday at 06:00 UTC | |
jobs: | |
build: | |
name: Python ${{ matrix.python-version }} ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest] | |
defaults: | |
run: | |
shell: bash -elo pipefail {0} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Create environment with Micromamba | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
cache-downloads: true | |
cache-environment: true | |
create-args: python=${{ matrix.python-version }} | |
environment-file: tests/environments/env-ci.yml | |
post-cleanup: none | |
- name: Install OSMnx | |
run: | | |
pip install -e . | |
conda list | |
conda info --all | |
- name: Lint code | |
run: SKIP=no-commit-to-branch pre-commit run --all-files | |
- name: Test docs | |
run: make -C ./docs html SPHINXOPTS="-W --keep-going" | |
- name: Test code | |
run: pytest --maxfail=1 --typeguard-packages=osmnx --cov=./osmnx --cov-report=xml --verbose | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |