From e23360b50596c6de13c38ab846846c95b2b02aed Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Sun, 29 Dec 2024 12:02:56 -0700 Subject: [PATCH] simplify workflow string quoting and pip caching --- .github/workflows/build-publish-docker.yml | 4 ++-- .github/workflows/build-publish-pypi.yml | 8 +++++--- .github/workflows/ci.yml | 4 ++-- .github/workflows/test-docs-linkcheck.yml | 6 ++++-- .github/workflows/test-latest-deps.yml | 4 ++-- .github/workflows/test-minimum-deps.yml | 2 +- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-publish-docker.yml b/.github/workflows/build-publish-docker.yml index 44d60fa0..6ffb1a1d 100644 --- a/.github/workflows/build-publish-docker.yml +++ b/.github/workflows/build-publish-docker.yml @@ -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: diff --git a/.github/workflows/build-publish-pypi.yml b/.github/workflows/build-publish-pypi.yml index fdbf19d0..967acae9 100644 --- a/.github/workflows/build-publish-pypi.yml +++ b/.github/workflows/build-publish-pypi.yml @@ -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: @@ -32,7 +32,9 @@ 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: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 341e6c2d..39f81f71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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: diff --git a/.github/workflows/test-docs-linkcheck.yml b/.github/workflows/test-docs-linkcheck.yml index 78a3740e..f67e2a73 100644 --- a/.github/workflows/test-docs-linkcheck.yml +++ b/.github/workflows/test-docs-linkcheck.yml @@ -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: @@ -24,7 +24,9 @@ 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: | diff --git a/.github/workflows/test-latest-deps.yml b/.github/workflows/test-latest-deps.yml index bc255d7c..eb557c71 100644 --- a/.github/workflows/test-latest-deps.yml +++ b/.github/workflows/test-latest-deps.yml @@ -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: @@ -29,7 +29,7 @@ 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: | diff --git a/.github/workflows/test-minimum-deps.yml b/.github/workflows/test-minimum-deps.yml index 07f0060e..8f048e26 100644 --- a/.github/workflows/test-minimum-deps.yml +++ b/.github/workflows/test-minimum-deps.yml @@ -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: