From 6f5345f7abf06f195100350ab870d58c47277de9 Mon Sep 17 00:00:00 2001 From: LippsApple Date: Thu, 11 Jul 2024 18:14:38 +0800 Subject: [PATCH] test.yml --- .github/workflows/test.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5493fef..2026b31 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -69,7 +69,20 @@ jobs: with: python-version: 3.12 - name: Install pytest - run: pip install -U pytest msgspec numpy typing_extensions + run: pip install -U pytest msgspec numpy typing_extensions maturin + - name: Build wheels + uses: PyO3/maturin-action@v1 + env: + RUSTFLAGS: "-Z threads=2 -D warnings" + with: + target: ${{ matrix.platform.target }} + args: --release + sccache: 'true' + manylinux: auto + rust-toolchain: nightly + working-directory: matcher_py + - name: Install wheels + run: pip install ./target/wheels/*.whl - name: Python Test if: matrix.platform.runner == 'ubuntu-latest' run: pytest matcher_py/test