diff --git a/.github/workflows/release_tag_to_pypi.yml b/.github/workflows/release_tag_to_pypi.yml new file mode 100644 index 00000000..ebf74162 --- /dev/null +++ b/.github/workflows/release_tag_to_pypi.yml @@ -0,0 +1,35 @@ +# This workflow will upload a Python Package using Twine when a release tag is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +name: Build and upload cropclassification to pypi + +on: + push: + tags: + - "v*" + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN_GITHUB_CROPCLASSIFICATION }} \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..299913bf --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,69 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Tests + +on: + push: + branches: [ main, v0.** ] + pull_request: + branches: [ main, v0.** ] + schedule: + - cron: "0 0 * * *" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + Linting: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - uses: pre-commit/action@v3.0.0 + + Test: + needs: Linting + name: ${{ matrix.os }}, ${{ matrix.env }} + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash -l {0} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + dev: [false] + env: + - ci/envs/38-latest-conda-forge.yaml + - ci/envs/39-latest-conda-forge.yaml + - ci/envs/310-latest-conda-forge.yaml + - ci/envs/311-latest-conda-forge.yaml + include: + - env: ci/envs/38-minimal.yaml + os: ubuntu-latest + dev: false + - env: ci/envs/39-latest-conda-forge.yaml + os: macos-latest + dev: false + - env: ci/envs/39-latest-conda-forge.yaml + os: windows-latest + dev: false + + steps: + - uses: actions/checkout@v3 + + - name: Install Conda environment with Micromamba + uses: mamba-org/provision-with-micromamba@main + with: + environment-file: ${{ matrix.env }} + + - name: Test + run: | + pytest --color=yes --cov=geofileops --cov-append --cov-report term-missing --cov-report xml tests/ + + - uses: codecov/codecov-action@v3 + diff --git a/CHANGELOG.md b/CHANGELOG.md index a0bd83d0..a9f2721d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,18 +1,17 @@ # CHANGELOG -## 0.1.0 (???) +## 0.1.1 (2023-08-08) ### Improvements +- Clip s2 and s1 timeseries values to one to avoid outliers > 1 (#47) +- Change default time_dimension_reducer to mean for both s1 and s2 (#48) + +## 0.1.0 +### Improvements + - Add support to use openeo for image retrieval/calculation (#36) - Improve performance of zonal_stats_bulk (#38) - Use black to comply to pep8 + minor general improvements (#13) - Upgrade all dependencies (#12) - Add support for pandas 2.0 (#21) - -### Bugs fixed - -- - -### Deprecations and compatibility notes - diff --git a/cropclassification/version.txt b/cropclassification/version.txt index 17c3789c..6da28dde 100644 --- a/cropclassification/version.txt +++ b/cropclassification/version.txt @@ -1 +1 @@ -0.1.0a2 \ No newline at end of file +0.1.1 \ No newline at end of file