diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7cd1cd42..ba5111ee 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,8 +7,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest] - python-version: ["3.7", "3.10"] + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: ["3.10"] steps: - uses: actions/checkout@v3 with: @@ -18,17 +18,13 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install dependencies - run: | - python -m pip install -U pip - python -m pip install scipy matplotlib pytest cmake ninja + run: python -m pip install wheel scipy matplotlib pytest cmake ninja - name: Set up MSVC if: runner.os == 'Windows' uses: ilammy/msvc-dev-cmd@v1 - name: ccache uses: hendrikmuhs/ccache-action@v1 - name: Build - run: | - cmake -GNinja -B build -DPB_WERROR=ON -DPB_NATIVE_SIMD=OFF - cmake --build build + run: python -m pip install . - name: Test - run: cmake --build build --target tests + run: python -c "import pybinding as pb; exit(pb.tests())"