Skip to content

feat: ED-1658 Video Space + Image Space #2691

feat: ED-1658 Video Space + Image Space

feat: ED-1658 Video Space + Image Space #2691

Workflow file for this run

name: SDK PR report
on:
pull_request:
branches:
- master
env:
PYTHON_VERSION: 3.9
BACKEND_REPO: cord-team/cord-backend
concurrency:
group: cord-client-${{ github.ref }}-pr
cancel-in-progress: true
jobs:
formatting:
name: Linting and type checking
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup uv environment
uses: ./.github/actions/setup-uv-environment
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run linting, type checking and testing
uses: pre-commit/[email protected]
with:
extra_args: "--all-files --hook-stage=push"
unit-tests:
name: Unit Tests (Python ${{ matrix.python.major_minor }}, Pydantic ${{ matrix.pydantic.version }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python:
- { version: '3.9.24', major_minor: '3.9', major_minor_test_report: '3_9' }
pydantic:
- { version: '1.10.22', suffix: 'p1' } # TODO: Look to drop Pydantic v1 support
- { version: '2.12.3', suffix: 'p2' }
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run unit tests
uses: ./.github/actions/run-unit-tests
with:
python-version: ${{ matrix.python.version }}
pydantic-version: ${{ matrix.pydantic.version }}
test-report-file: unit-test-report-python${{ matrix.python.major_minor_test_report }}_${{ matrix.pydantic.suffix }}.xml
integration-tests:
name: Run integration tests
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Checkout backend repo
uses: actions/checkout@v4
with:
repository: ${{ env.BACKEND_REPO }}
token: ${{ secrets.ACCESS_TOKEN }}
path: encord-backend
- name: Run integration tests
uses: ./.github/actions/run-integration-tests
with:
private-key: ${{ secrets.SDK_TESTS_PRIVATE_KEY }}
private-key-service-account: ${{ secrets.SDK_TESTS_PRIVATE_KEY_SERVICE_ACCOUNT }}
private-key-non-org: ${{ secrets.SDK_TESTS_PRIVATE_KEY_NON_ORG }}
robot-account-email: ${{ secrets.ROBOT_ACCOUNT_EMAIL }}
robot-account-password: ${{ secrets.ROBOT_ACCOUNT_PASSWORD }}
sdk-repository-url: https://github.com/encord-team/encord-client-python@${{ github.sha }}