removed unnecessarily mucking about with the C API #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push] | |
jobs: | |
build_and_test: | |
runs-on: ${{ matrix.os }} | |
env: | |
CIBW_ARCHS: ${{ matrix.arch }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
arch: [auto] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_TEST_REQUIRES: pytest | |
CIBW_TEST_COMMAND: pytest {project}/tests | |
CIBW_SKIP: cp36-* cp37-* pp37-* | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl | |
deploy: | |
if: github.ref_type == 'tag' | |
needs: [build_and_test] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade setuptools wheel twine | |
- name: Download artifacts from build jobs | |
uses: actions/download-artifact@v2 | |
with: | |
path: wheelhouse/ | |
- name: Move wheels to dist/ directory | |
run: | | |
mkdir -p dist/ | |
find . -type f -name "unicodedataplus*.whl" -exec mv {} dist/ \; | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
python setup.py sdist | |
twine upload dist/* |