Skip to content

Commit

Permalink
use manylinux to build the wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuree committed Dec 5, 2022
1 parent 4feb8ba commit ad03f97
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
submodules: true
- name: Install Python packages
shell: bash
run: pip3 install wheel wheeltools pytest
run: pip3 install pytest wheelhouse wheeltools
- name: Start docker container
shell: bash
run: docker run --name manylinux -v `pwd`:/workspace -it -d quay.io/pypa/manylinux2014_x86_64 bash
- name: Build wheel
shell: bash
run: python3 setup.py build_ext -j 4 bdist_wheel
run: docker exec -i manylinux bash -c "cd /workspace && /opt/python/cp310-cp310/bin/python setup.py build_ext -j 4 bdist_wheel"
- name: Fix wheel
shell: bash
run: |
Expand All @@ -27,14 +30,14 @@ jobs:
- name: Install Python packages
shell: bash
run: pip3 install --no-index --find-links=wheelhouse hgdb-rtl
- name: Show help
shell: bash
run: hgdb-rtl -h
- name: Upload wheel
uses: actions/upload-artifact@v2
with:
name: hgdb-rtl
path: wheelhouse/
- name: Tests
shell: bash
run: python3 -m pytest tests/ -v
run: |
docker run --name test -v `pwd`:/workspace -it -d python:3.10 bash
docker exec -i test bash -c "pip install pytest /workspace/wheelhouse/*.whl"
docker exec -i test bash -c "cd /workspace && pytest tests/ -v"

0 comments on commit ad03f97

Please sign in to comment.