Skip to content

Commit

Permalink
Go back to using just python minor version.
Browse files Browse the repository at this point in the history
This makes the string manipulation easier for cibuildwheel.
  • Loading branch information
Michael O'Keefe authored and Michael O'Keefe committed Nov 15, 2024
1 parent 4f6f2b8 commit 9ca2e11
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- macos
- windows
python-version:
- "3.8"
- "3.9"
- "3.10"
- "8"
- "9"
- "10"
include:
- os: ubuntu
platform: linux
Expand All @@ -31,7 +31,7 @@ jobs:
- name: set up python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: '3.${{ matrix.python-version }}'
- name: install python dependencies
run: python -m pip install --upgrade pip setuptools wheel pytest twine cibuildwheel
- name: run cargo tests
Expand All @@ -41,14 +41,14 @@ jobs:
- name: run pytest
run: pytest -v
- name: build source distribution
if: matrix.os == 'ubuntu' && matrix.python-version == '3.10'
if: matrix.os == 'ubuntu' && matrix.python-version == '10'
run: |
pip install -U setuptools-rust
python -c "import setuptools; setuptools.setup()" sdist
- name: build ${{ matrix.platform || matrix.os }} binaries
run: cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp${{ matrix.python-version }}-*"
CIBW_BUILD: "cp3${{ matrix.python-version }}-*"
CIBW_SKIP: "*-win32 *-musllinux* *i686 *ppc64le *s390x *aarch64"
CIBW_PLATFORM: ${{ matrix.platform || matrix.os }}
# TODO: why doesn't pytest work with cibuildwheel?
Expand Down

0 comments on commit 9ca2e11

Please sign in to comment.