Skip to content

bugfix: swapped color channels when visualizing prediction sample (notebook 10) #1217

bugfix: swapped color channels when visualizing prediction sample (notebook 10)

bugfix: swapped color channels when visualizing prediction sample (notebook 10) #1217

Workflow file for this run

name: Pre-merge tests
# Controls when the action will run. This action can be triggered manually
# (workflow_dispatch trigger), and it will be run automatically when a PR to main is made.
on:
workflow_dispatch:
pull_request:
branches:
- main
- 'releases/**'
env:
PREMERGE_TEST_REPORT: pre_merge_test_report.html
REPORT_DIRECTORY: reports
PYTHONUTF8: '1'
permissions:
contents: read
checks: read
actions: read
jobs:
pr_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]
include: # Run test with legacy cassette (Currently - Geti 2.0)
- os: ubuntu-24.04
python-version: '3.10'
env: GETI_PLATFORM_VERSION=LEGACY
fail-fast: true
max-parallel: 5
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
lfs: true
- name: Set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- name: Install package with dev and notebook requirements
run: |
python -m pip install --upgrade pip
pip install ".[dev,notebooks]"
- name: Create report directory
# Creates the temporary directory that is used to store the test report
run: |
mkdir -p env.REPORT_DIRECTORY
- name: Check formatting with black
run: black . --check
- name: Check imports with isort
run: isort . --check
if: ${{ always() }}
- name: Flake8 linting
run: flake8 .
if: ${{ always() }}
- name: Pydocstyle linting
run: pydocstyle geti_sdk --count
if: ${{ always() }}
- name: Test with pytest
run: |
pytest tests/pre-merge -c tests/offline.ini --cov=geti_sdk --html=env.REPORT_DIRECTORY/env.PREMERGE_TEST_REPORT --self-contained-html --cov-report html:env.REPORT_DIRECTORY/coverage
- name: Upload test report for pre-merge tests
# Publish the test report to github
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ always() }}
with:
name: pre-merge-test-reports
path: ${{ env.REPORT_DIRECTORY }}
- name: Clean up report directories
# Remove temporary report directory
if: ${{ always() }}
run: |
rm -r env.REPORT_DIRECTORY