diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 91cc9a5..32c0bda 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -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: | @@ -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: | @@ -42,4 +49,14 @@ jobs: - name: Run Cython Ext Unit Tests run: | python setup.py build_ext --inplace - python -m unittest discover tests -v \ No newline at end of file + 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 \ No newline at end of file