Test minimal versions #20
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: Test minimal 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: [ubuntu-latest] | |
defaults: | |
run: | |
shell: bash -elo pipefail {0} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Create environment with Micromamba | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
cache-downloads: true | |
cache-environment: true | |
environment-file: tests/environments/env-test-minimal.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 | |
hatch build --clean | |
twine check --strict ./dist/* | |
- name: Test docs | |
run: | | |
make -C ./docs html | |
python -m sphinx -b linkcheck docs/ _build/linkcheck | |
- name: Test code | |
run: pytest --cov=./osmnx --cov-report=term-missing --verbose |