diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 573b30a7..9c9a0e84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,21 +28,12 @@ jobs: if: ${{ steps.release.outputs.release_created }} uses: actions/checkout@v4 - - name: Setup Python - if: ${{ steps.release.outputs.release_created }} - uses: actions/setup-python@v5 - - - name: Setup Rust - if: ${{ steps.release.outputs.release_created }} - uses: actions-rust-lang/setup-rust-toolchain@v1 - - - name: Install "uv" - if: ${{ steps.release.outputs.release_created }} - uses: astral-sh/setup-uv@v5 - - name: Build package if: ${{ steps.release.outputs.release_created }} - run: uv build + uses: PyO3/maturin-action@v1 + with: + command: build + args: --release --out dist - name: Publish package distributions to PyPI if: ${{ steps.release.outputs.release_created }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e144d8c6..7ae86594 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,17 +29,11 @@ jobs: - name: Checkout project uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v5 - - - name: Setup Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - - - name: Install "uv" - uses: astral-sh/setup-uv@v5 - - name: Build package - run: uv build + uses: PyO3/maturin-action@v1 + with: + command: build + args: --release install: runs-on: ${{ matrix.runs-on }} @@ -60,19 +54,16 @@ jobs: - name: Checkout project uses: actions/checkout@v4 + - name: Build package + uses: PyO3/maturin-action@v1 + with: + command: build + args: --release --out dist + - name: Setup Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Setup Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - - - name: Install "uv" - uses: astral-sh/setup-uv@v5 - - - name: Build package - run: uv build - - name: Install package using constraints run: pip install --constraint https://releases.openstack.org/constraints/upper/${{ matrix.openstack-version }} ./dist/*.whl