Skip to content

Commit

Permalink
simplify workflow string quoting and pip caching
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Dec 29, 2024
1 parent 1227a18 commit e23360b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
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
8 changes: 5 additions & 3 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,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: |
Expand Down
4 changes: 2 additions & 2 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 Down
6 changes: 4 additions & 2 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,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: |
Expand Down
4 changes: 2 additions & 2 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,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: |
Expand Down
2 changes: 1 addition & 1 deletion .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

0 comments on commit e23360b

Please sign in to comment.