2021-09-23 20:41:10 +00:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
name: "Python ${{ matrix.python-version }}"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-19 14:47:05 +00:00
|
|
|
python-version: ["3.6", "3.9", "3.10"]
|
2021-09-23 20:41:10 +00:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: "actions/checkout@v2"
|
|
|
|
with:
|
|
|
|
submodules: 'true'
|
|
|
|
- uses: "actions/setup-python@v2"
|
|
|
|
with:
|
|
|
|
python-version: "${{ matrix.python-version }}"
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest hypothesis pandas
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
run: |
|
|
|
|
pip install build; python -m build --sdist
|
|
|
|
# test whether tarball contains all files required for compiling
|
|
|
|
pip install dist/rapidfuzz-*.tar.gz
|
|
|
|
|
|
|
|
- name: Test with pytest
|
|
|
|
run: |
|
|
|
|
pytest tests
|