Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update pip installs #1263

Merged
merged 3 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Build and publish Docker image
on:
push:
tags:
- 'v*'
- v*
schedule:
- cron: "50 4 * * 1" # every monday at 04:50 UTC
- cron: 50 4 * * 1 # every monday at 04:50 UTC

jobs:
build_publish_docker:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build-publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ name: Build and publish to PyPI
on:
push:
tags:
- 'v*'
- v*
schedule:
- cron: "40 4 * * 1" # every monday at 04:40 UTC
- cron: 40 4 * * 1 # every monday at 04:40 UTC

jobs:
build_publish_pypi:
Expand All @@ -32,11 +32,13 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: 3.*
cache: pip
cache-dependency-path: ./environments/requirements/requirements-packaging.txt

- name: Build and check package
run: |
python -m pip install --user -r ./environments/requirements/requirements-packaging.txt
python -m pip install -r ./environments/requirements/requirements-packaging.txt
python -m validate_pyproject ./pyproject.toml
python -m hatch build --clean
python -m twine check --strict ./dist/*
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches: [main, v1]
schedule:
- cron: "0 4 * * 1" # every monday at 04:00 UTC
- cron: 0 4 * * 1 # every monday at 04:00 UTC
workflow_dispatch:

jobs:
Expand All @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest]

defaults:
Expand All @@ -39,7 +39,7 @@ jobs:

- name: Install OSMnx
run: |
python -m pip install -e .
python -m pip install .
python -m pip check
micromamba list
python -m pip show osmnx
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test-docs-linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build docs and check links

on:
schedule:
- cron: "10 4 * * 1" # every monday at 04:10 UTC
- cron: 10 4 * * 1 # every monday at 04:10 UTC
workflow_dispatch:

jobs:
Expand All @@ -24,11 +24,13 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: 3.*
cache: pip
cache-dependency-path: ./environments/requirements/requirements-docs.txt

- name: Install requirements
run: |
python -m pip install --user furo "sphinx==7.*" sphinx-autodoc-typehints
python -m pip install -r ./environments/requirements/requirements-docs.txt
python -m pip check

- name: Build docs and check links
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-latest-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Test latest/pre-release dependencies

on:
schedule:
- cron: "30 4 * * 1" # every monday at 04:30 UTC
- cron: 30 4 * * 1 # every monday at 04:30 UTC
workflow_dispatch:

jobs:
Expand All @@ -29,12 +29,12 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: 3.*

- name: Install OSMnx with latest/pre-release dependencies
run: |
python -m pip install --pre -r ./environments/tests/requirements-test-latest-deps.txt
python -m pip install -e .
python -m pip install .
python -m pip check
python -m pip list -v
python -m pip show osmnx
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-minimum-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Test minimum dependencies

on:
schedule:
- cron: "20 4 * * 1" # every monday at 04:20 UTC
- cron: 20 4 * * 1 # every monday at 04:20 UTC
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Install OSMnx
run: |
python -m pip install -e .
python -m pip install .
python -m pip check
micromamba list
python -m pip show osmnx
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ packages = ["osmnx"]
path = "osmnx/_version.py"

[tool.mypy]
cache_dir = "~/.cache/mypy"
cache_dir = "~/.cache/pre-commit/mypy"
ignore_missing_imports = true
python_version = "3.9"
strict = true
warn_no_return = true
warn_unreachable = true

[tool.ruff]
cache-dir = "~/.cache/ruff"
cache-dir = "~/.cache/pre-commit/ruff"
exclude = ["build/*"]
line-length = 100

Expand Down
Loading