Skip to content
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
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ on:
pull_request:
push:

# When a PR is updated, cancel the jobs from the previous version. Merges
# do not define head_ref, so use run_id to never cancel those jobs.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build-wheels:
timeout-minutes: 15
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -36,6 +43,7 @@ jobs:
retention-days: 1

build-test-env-base:
timeout-minutes: 15
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -78,6 +86,7 @@ jobs:
mamba env export -p /tmp/test_env

run-black-check:
timeout-minutes: 15
runs-on: ubuntu-latest
needs:
- build-test-env-base
Expand All @@ -102,6 +111,7 @@ jobs:
black --check .

run-pylint:
timeout-minutes: 15
runs-on: ubuntu-latest
needs:
- build-test-env-base
Expand Down Expand Up @@ -131,6 +141,7 @@ jobs:
pylint -v odc

run-mypy:
timeout-minutes: 15
runs-on: ubuntu-latest
needs:
- build-test-env-base
Expand All @@ -155,6 +166,7 @@ jobs:
mypy --explicit-package-bases --python-version 3.10 odc

test-with-coverage:
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down Expand Up @@ -207,6 +219,7 @@ jobs:
use_oidc: true

test-wheels:
timeout-minutes: 15
runs-on: ubuntu-latest

needs:
Expand Down Expand Up @@ -254,6 +267,7 @@ jobs:
DASK_TEMPORARY_DIRECTORY: /tmp/dask

check-docs:
timeout-minutes: 15
runs-on: ubuntu-latest

needs:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ name: Publish to PyPI
on:
workflow_dispatch:

# When a PR is updated, cancel the jobs from the previous version. Merges
# do not define head_ref, so use run_id to never cancel those jobs.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
publish-pypi:
if: github.repository == 'opendatacube/odc-geo'

timeout-minutes: 15
runs-on: ubuntu-latest

steps:
Expand Down
Loading