Convert EO datasets and products to EO3 #3567
This file contains hidden or 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: lint | |
on: | |
pull_request: | |
paths: | |
- '**' | |
push: | |
branches: | |
- develop | |
paths: | |
- '**' | |
- '!.github/**' | |
- '.github/workflows/lint.yaml' | |
- '!docker/**' | |
- '!docs/**' | |
- '!contrib/**' | |
workflow_dispatch: | |
permissions: {} | |
# 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: | |
lint: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
lintcommand: | |
- "pylint -j 2 datacube" | |
- "mypy datacube examples integration_tests tests" | |
name: Linting | |
steps: | |
- name: checkout git | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Install uv | |
uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1 | |
- name: run linter | |
run: | | |
uv run ${LINT_COMMAND} | |
env: | |
LINT_COMMAND: ${{matrix.lintcommand}} | |
UV_PYTHON: ${{ matrix.python-version }} | |
UV_PYTHON_PREFERENCE: managed |