diff --git a/.github/workflows/build_primary_wheels.yml b/.github/workflows/build_primary_wheels.yml index 12062b8..73e7759 100644 --- a/.github/workflows/build_primary_wheels.yml +++ b/.github/workflows/build_primary_wheels.yml @@ -30,24 +30,41 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - build: - name: Build pure py + + build_pure_py: + name: Build and test pure py wheels runs-on: ubuntu-latest + strategy: + matrix: + include: + - tag: py311 + version: 3.11 + - tag: py312 + version: 3.12 steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: ">=3.6" + python-version: "${{ matrix.version }}" - name: Install dependencies run: pip install -U pip setuptools wheel pytest + - 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/* + - name: Install module - run: FROZENDICT_PURE_PY=1 python setup.py install + run: pip install dist/* - name: Test with pytest run: pytest + + - uses: actions/upload-artifact@v3 + with: + path: ./dist/*