Skip to content

[NO-ISSUE] Updated imghash-rs to 1.3.1 #17

[NO-ISSUE] Updated imghash-rs to 1.3.1

[NO-ISSUE] Updated imghash-rs to 1.3.1 #17

Workflow file for this run

name: Checks
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install Rye
uses: eifinger/setup-rye@v4
- name: Pin Python Version
run: rye pin ${{ matrix.python-version }}
- name: Install Dependencies
run: rye sync
- name: Compile Bindings
run: rye run maturin develop
- name: Run Tests
run: rye run pytest -v tests/
lint:
name: Linting
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install Rye
uses: eifinger/setup-rye@v4
- name: Pin Python Version
run: rye pin ${{ matrix.python-version }}
- name: Install Dependencies
run: rye sync
- name: Run Ruff Linter
run: rye run ruff check -v
format:
name: Formatting
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install Rye
uses: eifinger/setup-rye@v4
- name: Pin Python Version
run: rye pin ${{ matrix.python-version }}
- name: Install Dependencies
run: rye sync
- name: Run Ruff Linter
run: rye run ruff format --check -v