Skip to content

reduce test

reduce test #903

Workflow file for this run

name: Test Build
on:
push:
paths-ignore:
- 'docs/**'
pull_request:
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
os: [ubuntu-latest]
steps:
- uses: "actions/checkout@v4"
with:
submodules: 'true'
- uses: "actions/setup-python@v5"
with:
allow-prereleases: true
python-version: "${{ matrix.python-version }}"
- name: build
run: |
pip install . -v
- name: Install testing dependencies
run: |
python -m pip install --upgrade pip
pip install pytest hypothesis pandas mypy pyright pyinstaller[hook_testing]
- name: Test type stubs
run: |
python tools/test_scorer_typing.py
python -m mypy tools/test_process_typing.py --warn-unused-ignores
python -m pyright -p tools/pyrightconfig.json tools/test_process_typing.py
- name: Test with pytest and backtrace in case of SegFault
if: runner.os == 'Linux'
run: |
sudo apt update && sudo apt install systemd-coredump
tools/seg_wrapper.sh pytest tests
- name: Test with pytest
if: runner.os != 'Linux'
run: |
pytest tests
- name: test pyinstaller packaging
run: |
python -m PyInstaller.utils.run_tests --include_only rapidfuzz.
- name: test cx_freeze packaging
if: matrix.python-version != '3.13'
run: |
pip install cx_freeze
cd tests/freezeTools
cxfreeze --script script.py --target-dir cxfreezeDist
ls
./cxFreezeDist/script