Skip to content

implement compute histogram #69

implement compute histogram

implement compute histogram #69

Workflow file for this run

name: Python Test
on:
pull_request:
paths:
- Cargo.lock
- py-kornia/**
- .github/workflows/test-python.yml
push:
branches:
- main
paths:
- Cargo.lock
- py-kornia/**
- .github/workflows/test-python.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-python-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: sudo apt-get install -y cmake nasm
- name: Build and test
run: make test-python
test-python-macos:
runs-on: macos-latest
steps:
- uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
architecture: x64
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: x86_64-apple-darwin
override: true
- uses: messense/maturin-action@v1
with:
command: build
maturin-version: latest
args: --target x86_64-apple-darwin --out dist -m py-kornia/Cargo.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip |
python -m pip install dist/*.whl |
python -m pip install pytest torch numpy
- name: Build and test
run: pytest py-kornia/tests