Skip to content

Interpolate palette colors in order to ensure colormaps always have the same number of colors #449

Interpolate palette colors in order to ensure colormaps always have the same number of colors

Interpolate palette colors in order to ensure colormaps always have the same number of colors #449

Workflow file for this run

name: Continuous Integration
on:
push:
pull_request:
env:
PUBLISH_IMAGE: ${{ (github.ref_name == 'main' || github.ref_type == 'tag') && 'TRUE' || 'FALSE'}}
IMAGE_TAG: ${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
IMAGE_NAME: ghcr.io/${{ github.repository }}/arpav-ppcv-backend
jobs:
run-dagger-ci:
runs-on: ubuntu-22.04
steps:
- name: grab code
uses: actions/checkout@v4
- name: setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
cache-dependency-path: docker/backend/project_requirements.txt
- name: setup poetry
uses: Gr1N/setup-poetry@v9
with:
poetry-version: "1.7.1"
- name: install code with dev dependencies
run: poetry install --with dev
- name: login to container registry
if: ${{ env.PUBLISH_IMAGE == 'TRUE' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.USER_FOR_REGISTRY }}
password: ${{ secrets.PAT_FOR_REGISTRY }}
- name: run ci
uses: dagger/dagger-for-github@v5
with:
verb: run
args: >-
poetry run python tests/ci/main.py
--git-commit ${{ github.sha }}
--with-linter
--with-formatter
--with-tests
--with-load-tests
${{ env.PUBLISH_IMAGE == 'TRUE' && format('--publish-docker-image {0}:{1}', env.IMAGE_NAME, env.IMAGE_TAG) || ''}}
version: 0.9.9