diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6de783e..12888e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,7 @@ permissions: jobs: build: name: Build wheels + if: github.repository == 'microBioRust/microBioRust' runs-on: ${{ matrix.os }} strategy: matrix: @@ -37,7 +38,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Build wheels uses: PyO3/maturin-action@v1 with: @@ -54,12 +55,13 @@ jobs: sdist: name: Build sdist + if: github.repository == 'microBioRust/microBioRust' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Build sdist uses: PyO3/maturin-action@v1 with: @@ -74,6 +76,7 @@ jobs: publish: name: Publish to PyPI + if: github.repository == 'microBioRust/microBioRust' runs-on: ubuntu-latest needs: [build, sdist] environment: pypi diff --git a/microbiorust-py/README.md b/microbiorust-py/README.md index 299c993..a4f7e80 100644 --- a/microbiorust-py/README.md +++ b/microbiorust-py/README.md @@ -12,6 +12,11 @@ pip install microbiorust ``` +to use the Python tests with pytest +```bash +python3 -m pytest -s tests/test_mbr.py +``` + Wheels are available for Linux, macOS and Windows (Python 3.10+). No Rust toolchain required. (no requirement to install Rust) @@ -32,6 +37,7 @@ To verify the Python module functions are correctly exposed from Rust: cargo test ``` + --- ## Features