-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: conda-build-publish-env | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.9 | ||
- affine | ||
- anaconda-client | ||
- click>=7.1.1 | ||
- conda-build | ||
- conda-verify | ||
- gdal | ||
- geojson | ||
- rasterio>=1.0.21 | ||
- shapely | ||
- pytest-runner | ||
- pytest |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
name: Build, Test and Upload Conda Package | ||
|
||
on: | ||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish: | ||
runs-on: continuumio/miniconda3 | ||
build-test-publish: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: | ||
- name: build-conda-package | ||
run: conda install -y conda-build && conda index && conda-build --output-folder .conda/ --no-test --no-anaconda-upload tilematrix .conda/ | ||
- name: install local conda build and test conda package | ||
run: conda install -c conda-forge -y gdal rasterio pytest-runner pytest && conda install -y --use-local tilematrix && pytest ./test/* -v | ||
- uses: actions/checkout@v2 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-activate-base: false | ||
python-version: 3.9 | ||
activate-environment: conda-build-publish-env | ||
auto-update-conda: true | ||
environment-file: .conda/conda-environment.yaml | ||
- name: build conda package | ||
run: VERSION=$(python setup.py --version) && conda index && conda-build --no-anaconda-upload --verify tilematrix .conda/meta.yaml && conda index && conda install -y --offline --use-local tilematrix=$VERSION | ||
- name: upload conda package | ||
run: conda install -y anaconda-client && export ANACONDA_API_TOKEN=${{ secrets.ANACONDA_TOKEN }} && anaconda upload --force .conda/noarch/*.tar.bz2 | ||
run: VERSION=$(python setup.py && export ANACONDA_API_TOKEN=${{ secrets.ANACONDA_TOKEN }} && anaconda upload -c conda-forge tilematrix=$VERSION |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
affine | ||
click | ||
click>=7.1.1 | ||
geojson | ||
rasterio>=1.0.21 | ||
shapely |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ | |
] | ||
|
||
|
||
__version__ = "2022.11.1" | ||
__version__ = "2022.11.dev2" |