fix tests, update whats_new #2251
Workflow file for this run
This file contains 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: | |
paths: | |
- '**' | |
- '!.github/**' | |
- '.github/workflows/lint.yaml' | |
- '!docker/**' | |
- '!docs/**' | |
- '!contrib/**' | |
jobs: | |
pylint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
name: Pylint | |
steps: | |
- name: checkout git | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup conda | |
uses: s-weigand/setup-conda@v1 | |
with: | |
update-conda: true | |
python-version: ${{ matrix.python-version }} | |
conda-channels: anaconda, conda-forge | |
- name: run pylint | |
run: | | |
sudo apt-get remove python3-openssl | |
pip install --upgrade -e '.[test]' | |
pip install pylint>3.2 | |
pylint -j 2 --reports no datacube | |
mypy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
name: MyPy | |
steps: | |
- name: checkout git | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup conda | |
uses: s-weigand/setup-conda@v1 | |
with: | |
update-conda: true | |
python-version: ${{ matrix.python-version }} | |
conda-channels: anaconda, conda-forge | |
- name: run mypy | |
run: | | |
sudo apt-get remove python3-openssl | |
pip install --upgrade -e '.[types]' | |
mypy datacube | |
pycodestyle: | |
name: pycodestyle | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup conda | |
uses: s-weigand/setup-conda@v1 | |
with: | |
update-conda: true | |
python-version: ${{ matrix.python-version }} | |
conda-channels: anaconda, conda-forge | |
- name: Run pycodestyle | |
run: | | |
sudo apt-get remove python3-openssl | |
pip install --upgrade -e '.[test]' | |
pycodestyle tests integration_tests examples --max-line-length 120 |