From 5878b69d6e7282323ee673c63a08d2234498e06d Mon Sep 17 00:00:00 2001 From: Ruben Di Battista Date: Sat, 24 Feb 2024 00:41:05 +0100 Subject: [PATCH] WIP --- .github/workflows/ci.yml | 91 ++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 46 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7255361af..99e14cf08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,47 +3,48 @@ name: Github Actions on: ["push", "pull_request"] jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] - os: - [ - ubuntu-latest, - ubuntu-20.04, - macos-latest, - macos-11, - windows-latest, - windows-2019, - ] - steps: - - uses: actions/checkout@v4 + # test: + # runs-on: ${{ matrix.os }} + # strategy: + # matrix: + # python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + # os: + # [ + # ubuntu-latest, + # ubuntu-20.04, + # macos-latest, + # macos-11, + # windows-latest, + # windows-2019, + # ] + # steps: + # - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + # - name: Set up Python ${{ matrix.python-version }} + # uses: actions/setup-python@v5 + # with: + # python-version: ${{ matrix.python-version }} - - name: Install - run: | - pip install . + # - name: Install + # run: | + # pip install . - - name: Test with pytest - run: | - pip install pytest - pytest --pyargs bottleneck + # - name: Test with pytest + # run: | + # pip install pytest + # pytest --pyargs bottleneck - check: - needs: test - runs-on: ubuntu-latest - steps: - - name: Placeholder for CI checks in PRs - run: echo "Done" + # check: + # needs: test + # runs-on: ubuntu-latest + # steps: + # - name: Placeholder for CI checks in PRs + # run: echo "Done" build_wheels: - needs: test - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + # needs: test + # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + if: github.event_name == 'push' runs-on: ${{ matrix.os }} strategy: matrix: @@ -56,7 +57,8 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.16.5 env: - CIBW_SKIP: pp* + CIBW_SKIP: pp* cp36-* *musllinux& + CIBW_BUILD: cp312-* - name: Store wheel artifacts uses: actions/upload-artifact@v4 @@ -66,7 +68,8 @@ jobs: build_sdist: needs: test - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + if: github.event_name == 'push' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -89,13 +92,9 @@ jobs: - uses: actions/download-artifact@v4 with: path: dist + merge-multiple: true - - uses: actions/download-artifact@v4 - with: - name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} - path: dist - - - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN}} +# - uses: pypa/gh-action-pypi-publish@release/v1 +# with: +# user: __token__ +# password: ${{ secrets.PYPI_API_TOKEN}}