diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7cd1cd42..4f83e204 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,14 +1,13 @@ name: tests - -on: [push] - +on: push jobs: build: runs-on: ${{ matrix.os }} strategy: + fail-fast: false 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 +17,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==3.7.3 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())"