mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
Test using CIBW
This commit is contained in:
parent
f2873f3a38
commit
0478532cb9
27
.github/workflows/python-package.yml
vendored
27
.github/workflows/python-package.yml
vendored
@ -53,17 +53,12 @@ jobs:
|
||||
|
||||
build:
|
||||
needs: test
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||
if: github.event_name == 'push'
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
MACOSX_DEPLOYMENT_TARGET: 10.15
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [ 3.7, 3.8, 3.9 ]
|
||||
os: [ macos-latest, windows-latest ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@ -71,29 +66,23 @@ jobs:
|
||||
# recursively checkout submodules.
|
||||
submodules: 'true'
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install libomp
|
||||
if: runner.os == 'macOS'
|
||||
# openMP isnt part of core apple clang for some reason?
|
||||
run: brew install libomp
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install setuptools wheel twine build
|
||||
|
||||
- name: Build a binary wheel
|
||||
run: python -m build --wheel --outdir dist/
|
||||
- name: Build wheels
|
||||
uses: joerick/cibuildwheel@v1.11.0
|
||||
env:
|
||||
CIBW_BUILD: { cp,pp }{ 37,38,39 }-*
|
||||
CIBW_SKIP: "*-win32 *-manylinux_i686"
|
||||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
|
||||
|
||||
- name: Upload wheel as artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: dist
|
||||
path: dist
|
||||
path: ./wheelhouse/*.whl
|
||||
|
||||
publish:
|
||||
needs: build
|
||||
|
Loading…
Reference in New Issue
Block a user