Skip to content

Commit

Permalink
feat: tilted images are imported without tilting (DEV-31) (#374)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Rosenthaler <lukas.rosenthaler@unibas.ch>
  • Loading branch information
subotic and lrosenth authored Jan 18, 2023
1 parent 8610fa4 commit 8f65c6c
Show file tree
Hide file tree
Showing 82 changed files with 3,142 additions and 4,117 deletions.
84 changes: 0 additions & 84 deletions .devcontainer/Dockerfile

This file was deleted.

38 changes: 0 additions & 38 deletions .devcontainer/devcontainer.json

This file was deleted.

54 changes: 23 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v1
uses: actions/checkout@v3
with:
fetch-depth: 50
- name: Checkout private ci-assets
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: dasch-swiss/dsp-ci-assets
token: ${{ secrets.DASCHBOT_PAT }} # `GitHub_PAT` is a secret that contains your PAT
token: ${{ secrets.DASCHBOT_PAT }} # `DASCHBOT_PAT` is a secret that contains your PAT
path: ci
- name: Copy ci-assets
run: |
cp $GITHUB_WORKSPACE/ci/kakadu/v8_2_1-01727L.zip $GITHUB_WORKSPACE/vendor/v8_2_1-01727L.zip
- name: Set up Python 3.9
uses: actions/setup-python@v2
cp $GITHUB_WORKSPACE/ci/kakadu/v8_3-01727L.zip $GITHUB_WORKSPACE/vendor/v8_3-01727L.zip
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- name: install requirements
run: make install-requirements
- name: compile
run: make compile-ci
- name: test
run: make test-ci

Expand All @@ -42,27 +40,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v1
uses: actions/checkout@v3
with:
fetch-depth: 50
- name: Checkout private ci-assets
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: dasch-swiss/dsp-ci-assets
token: ${{ secrets.DASCHBOT_PAT }} # `GitHub_PAT` is a secret that contains your PAT
token: ${{ secrets.DASCHBOT_PAT }} # `DASCHBOT_PAT` is a secret that contains your PAT
path: ci
- name: Copy ci-assets
run: |
cp $GITHUB_WORKSPACE/ci/kakadu/v8_2_1-01727L.zip $GITHUB_WORKSPACE/vendor/v8_2_1-01727L.zip
- name: Set up Python 3.9
uses: actions/setup-python@v2
cp $GITHUB_WORKSPACE/ci/kakadu/v8_3-01727L.zip $GITHUB_WORKSPACE/vendor/v8_3-01727L.zip
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- name: install requirements
run: make install-requirements
- name: build docker image
run: make docker-build
- name: integration tests
- name: build docker image and run integration tests
run: make test-integration

# publish only on release
Expand All @@ -73,26 +69,22 @@ jobs:
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
steps:
- name: checkout source
uses: actions/checkout@v1
uses: actions/checkout@v3
with:
fetch-depth: 50
- name: checkout private ci-assets
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: dasch-swiss/dsp-ci-assets
token: ${{ secrets.DASCHBOT_PAT }} # `DASCHBOT_PAT` is a secret that contains your PAT
path: ci
- name: copy ci-assets
run: |
cp $GITHUB_WORKSPACE/ci/kakadu/v8_2_1-01727L.zip $GITHUB_WORKSPACE/vendor/v8_2_1-01727L.zip
cp $GITHUB_WORKSPACE/ci/kakadu/v8_3-01727L.zip $GITHUB_WORKSPACE/vendor/v8_3-01727L.zip
- name: build and publish production image
run: |
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
make docker-publish
- name: build and publish debug image
run: |
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
make docker-publish-debug
- name: Update release notes
uses: lakto/gren-action@v1.1.0
env:
Expand All @@ -104,13 +96,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -126,7 +118,7 @@ jobs:
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout main branch
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
Expand Down
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,30 @@ sipi
*~
*.pyc
.idea/
/.vscode
SipiConfig.h
sipi.log*
/extsrcs/
/cmake-build-debug/

target
__pycache__/
doc/
_build/
.pytest_cache
/venv/

#
# Cmake things to be ignored
#
lib
local
/build
build-linux
build-mac
cmake-build-debug
/cmake-build-debug/
/cmake-build-debug-remote/
/cmake-build-debug-inside-docker/
# ignore cache
cache/

Expand All @@ -59,5 +65,5 @@ _lena512.jp2
/test/_test_data/images/unit/cielab.png
/test/_test_data/images/unit/CIELab16.jpg
/test/_test_data/images/unit/CIELab16.png
/build
/.vscode
/test/_test_data/images/unit/cielab_2.tif
/cmake-build-dockerdebug
Loading

0 comments on commit 8f65c6c

Please sign in to comment.