cibuidwheelを用いてビルドを行う場合に、ローカルでもpytestが行える様に変更を加えました。 #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test library on pull request | |
on: pull_request | |
jobs: | |
build: | |
name: Build and test distribution | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- python-version: "3.8" | |
python-version-sub: "38" | |
- python-version: "3.9" | |
python-version-sub: "39" | |
- python-version: "3.10" | |
python-version-sub: "310" | |
steps: | |
- uses: actions/checkout@v4 | |
# Build by cibuildwheel | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
python-version: ${{ matrix.python-version }} | |
# Modify as needed, you may need to adjust this line according to your requirements | |
CIBW_BUILD: "cp${{ matrix.python-version-sub }}-manylinux_x86_64" | |
CIBW_BEFORE_BUILD: "cmake . -DPYTHON_EXECUTABLE=/usr/local/bin/python${{ matrix.python-version }} -DCMAKE_BUILD_TYPE=Release && cmake --build . -j" | |
CIBW_TEST_COMMAND: "pytest {project}/test && {project}/test/qdd_test" |