Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbisme committed Feb 24, 2024
1 parent 4108d39 commit 5878b69
Showing 1 changed file with 45 additions and 46 deletions.
91 changes: 45 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -56,7 +57,8 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_SKIP: pp*
CIBW_SKIP: pp* cp36-* *musllinux&
CIBW_BUILD: cp312-*

- name: Store wheel artifacts
uses: actions/upload-artifact@v4
Expand All @@ -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
Expand All @@ -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}}

0 comments on commit 5878b69

Please sign in to comment.