Skip to content

Commit

Permalink
add wheel build
Browse files Browse the repository at this point in the history
  • Loading branch information
markreidvfx committed Jun 13, 2022
1 parent 391e432 commit 979e1d1
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Windows Choco Cache
if: ${{ runner.os == 'Windows' && matrix.python-version == '2.7' }}
uses: actions/cache@v3
with:
key: choco-${{ runner.os }}-vcpython27
path: ~\AppData\Local\Temp\chocolatey\vcpython27\*\*.msi

- name: Setup MSVC for Python 2.7
if: ${{ runner.os == 'Windows' && matrix.python-version == '2.7' }}
run: |
Expand All @@ -33,7 +40,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cython
pip install wheel cython
- name: Run Unit Tests
run: |
Expand All @@ -42,4 +49,14 @@ jobs:
- name: Run Cython Ext Unit Tests
run: |
python setup.py build_ext --inplace
python -m unittest discover tests -v
python -m unittest discover tests -v
- name: Build Wheel
run: |
python setup.py bdist_wheel
- name: Create Artifact ${{ matrix.os }} python ${{ matrix.python-version }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-python-${{ matrix.python-version }}
path: dist/*.whl

0 comments on commit 979e1d1

Please sign in to comment.