Skip to content

Commit

Permalink
Fix packagr publish (#525)
Browse files Browse the repository at this point in the history
Fix packagr release
  • Loading branch information
aditya-nambiar authored Aug 6, 2024
1 parent 28199e6 commit b166528
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/packagr_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,20 @@ jobs:

# Build the package using Maturin
- name: Build the package using Maturin
run: maturin build --release --manifest-path ./server/fennel_data_lib/Cargo.toml --out dist --no-sdist

# Install the built package
run: maturin build --release --features "extension-module" --manifest-path ./server/fennel_data_lib/Cargo.toml --out dist
# Install the built package
- name: Install built package
run: pip install dist/*.whl
run: |
source .venv/bin/activate
python -m pip install dist/*.whl
python -c "import fennel_data_lib"
# Run Python tests
- name: Run tests
run: |
source .venv/bin/activate
poetry run pytest fennel --run_slow
pytest fennel --run_slow
# Publish the package to PyPI if all tests pass
- name: Publish to PyPI
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/test_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,16 @@ jobs:
- name: Install maturin
run: python -m pip install maturin

- name: Build and link the package using Maturin Develop
run: maturin develop --release --manifest-path ./server/fennel_data_lib/Cargo.toml
# Build the package using Maturin
- name: Build the package using Maturin
run: maturin build --release --features "extension-module" --manifest-path ./server/fennel_data_lib/Cargo.toml --out dist

# Install the built package
- name: Install built package
run: |
source .venv/bin/activate
python -m pip install dist/*.whl
python -c "import fennel_data_lib"
#----------------------------------------------
# install your root project, if required
Expand All @@ -103,6 +110,6 @@ jobs:
- name: Run tests
run: |
source .venv/bin/activate
poetry run pytest fennel --run_slow
poetry run pytest docs
pytest fennel --run_slow
pytest docs
poetry run python -m unittest discover fennel

0 comments on commit b166528

Please sign in to comment.