Skip to content

Commit

Permalink
test precommit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
BenJourdan committed Oct 11, 2024
1 parent 9c93176 commit 5d563ca
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ jobs:
with:
python-version: 3.x

# Install Maturin to build Rust/Python library
- name: Install Maturin
run: pip install maturin

# Build and install the Rust library using Maturin
- name: Build and install Rust library
run: maturin develop --release


# Install dependencies
- name: Install linters, formatters, test tools, and docs tools
run: |
Expand Down Expand Up @@ -121,6 +130,14 @@ jobs:
with:
python-version: 3.x

# Install Maturin to build Rust/Python library
- name: Install Maturin
run: pip install maturin

# Build and install the Rust library using Maturin
- name: Build and install Rust library
run: maturin develop --release

# Install dependencies
- name: Install linters, formatters, test tools, and docs tools
run: |
Expand Down Expand Up @@ -196,6 +213,14 @@ jobs:
python-version: 3.x
architecture: ${{ matrix.platform.target }}

# Install Maturin to build Rust/Python library
- name: Install Maturin
run: pip install maturin

# Build and install the Rust library using Maturin
- name: Build and install Rust library
run: maturin develop --release

# Install dependencies
- name: Install linters, formatters, test tools, and docs tools
run: |
Expand Down Expand Up @@ -269,6 +294,14 @@ jobs:
with:
python-version: 3.x

# Install Maturin to build Rust/Python library
- name: Install Maturin
run: pip install maturin

# Build and install the Rust library using Maturin
- name: Build and install Rust library
run: maturin develop --release

# Install dependencies
- name: Install linters, formatters, test tools, and docs tools
run: |
Expand Down
Binary file not shown.
13 changes: 13 additions & 0 deletions tests/test_dummy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# test_coreset_sc.py


def test_sum_as_string():
"""Test the sum_as_string function from the coreset_sc module."""
# Import the Rust-based module
import coreset_sc

# Call the function
result = coreset_sc.sum_as_string(3, 4)

# Assert that the result is the expected string
assert result == "7", f"Expected '7' but got {result}"

0 comments on commit 5d563ca

Please sign in to comment.