Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/actions/tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ runs:
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: pip

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Install dependencies
shell: bash -euxo pipefail {0}
run: |
python -m pip install --upgrade pip
pip install -e .[tests]
run: uv sync --extra tests

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -29,5 +29,5 @@ runs:
- name: Run Tests
shell: bash -euxo pipefail {0}
run: |
pytest tests/
uv run pytest tests/
cargo test --workspace --locked
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v7
- run: |
pip install -e .[dev]
uv sync --extra dev
scripts/check-prettier.sh
ruff check .
uv run ruff check .
cargo fmt --all -- --check
cargo clippy --workspace -- -D warnings

tests:
needs: [check-style]
name: ${{ matrix.os }} (Py ${{ matrix.python-version }})
strategy:
fail-fast: false
Expand Down
21 changes: 3 additions & 18 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
[workspace]
members = ["crates/fluxqueue-common", "crates/fluxqueue-worker"]
members = ["crates/*"]
resolver = "3"

[workspace.package]
edition = "2024"
repository = "https://github.com/CCXLV/fluxqueue"
homepage = "https://fluxqueue.ccxlv.dev"
authors = ["Giorgi Merebashvili <mereba2627@gmail.com>"]
edition = "2024"

[package]
name = "fluxqueue_core"
version = "0.2.0"
edition = "2024"

[lib]
name = "fluxqueue_core"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.27.2", features = ["experimental-async"] }
pyo3-async-runtimes = { version = "0.27.0", features = ["tokio-runtime"] }
tokio = { version = "1.49.0", features = ["rt-multi-thread", "sync"] }
deadpool-redis = { version = "0.22.1", features = ["rt_tokio_1"] }
fluxqueue-common = { path = "./crates/fluxqueue-common" }

[workspace.dependencies]
fluxqueue-common = { path = "./crates/fluxqueue-common" }
14 changes: 14 additions & 0 deletions crates/fluxqueue-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "fluxqueue_core"
version = "0.2.0"
repository.workspace = true
homepage.workspace = true
authors.workspace = true
edition.workspace = true

[dependencies]
pyo3 = { version = "0.27.2", features = ["experimental-async"] }
pyo3-async-runtimes = { version = "0.27.0", features = ["tokio-runtime"] }
tokio = { version = "1.49.0", features = ["rt-multi-thread", "sync"] }
deadpool-redis = { version = "0.22.1", features = ["rt_tokio_1"] }
fluxqueue-common.workspace = true
File renamed without changes.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ docs = [
build = ["maturin"]

[tool.maturin]
python-source = "."
module-name = "fluxqueue.fluxqueue_core"
python-source = "python"
manifest-path = "crates/fluxqueue-core/Cargo.toml"

[tool.ruff]
line-length = 88
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import os
from dataclasses import dataclass
from typing import Annotated

import pytest
from redis import Redis

from fluxqueue import FluxQueue

REDIS_VERSION = os.getenv("REDIS_VERSION") if os.getenv("REDIS_VERSION") else "latest"
from redis import Redis


@dataclass
Expand Down