fix typo #61
Workflow file for this run
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, pull_request] | |
jobs: | |
build_sdist: | |
name: Build source distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Build | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install build | |
python -m build --sdist | |
pip install -v dist/editdistpy-*.tar.gz | |
- name: Install test dependencies | |
run: | | |
python -m pip install pytest numpy symspellpy | |
pytest tests | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifact-sdist | |
path: dist/*.tar.gz | |
build_wheels_linux: | |
name: Build wheels for ubuntu-latest/${{ matrix.arch }}/${{ matrix.python_tag }} | |
needs: [build_sdist] | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [x86_64] | |
python_tag: ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*"] | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: artifact-sdist | |
path: dist | |
- name: Copy wheel | |
run: cp dist/editdistpy-*.tar.gz editdistpy.tar.gz | |
- name: Build wheel | |
uses: pypa/[email protected] | |
env: | |
CIBW_ARCHS_LINUX: ${{ matrix.arch }} | |
CIBW_BUILD: ${{ matrix.python_tag }} | |
CIBW_BUILD_VERBOSITY: 3 | |
CIBW_BEFORE_TEST: pip install symspellpy --no-deps | |
CIBW_TEST_REQUIRES: pytest numpy | |
CIBW_TEST_COMMAND: pytest -sv {project}/tests | |
with: | |
package-dir: editdistpy.tar.gz | |
output-dir: wheelhouse | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: ./wheelhouse/*.whl |