Skip to content

Commit

Permalink
Added build of pure py wheels to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Sulla committed May 16, 2024
1 parent 7596e70 commit 216c48a
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/build_primary_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
with:
path: ./wheelhouse/*.whl

build:
name: Build pure py
test_pure_py:
name: Test pure py
runs-on: ubuntu-latest

steps:
Expand All @@ -51,3 +51,31 @@ jobs:

- name: Test with pytest
run: pytest

build_pure_py:
name: Build pure py wheels
runs-on: ubuntu-latest
strategy:
matrix:
tag: [py311, py312, py313]

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ">=3.11"

- name: Install dependencies
run: pip install -U pip setuptools wheel

- name: Build module
run: FROZENDICT_PURE_PY=1 python setup.py bdist_wheel

- name: Change tag to wheel
run: python -m wheel tags --python-tag=${{ matrix.tag }} --remove dist/*

- uses: actions/upload-artifact@v3
with:
path: ./dist/*

0 comments on commit 216c48a

Please sign in to comment.