Bump the github-actions group across 1 directory with 2 updates (#408) #192
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: Coverage of Test Build | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
tests: | |
name: "Generate coverage report for tests" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: "actions/checkout@v4" | |
with: | |
submodules: 'true' | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest hypothesis pandas coverage cython | |
- name: Generate cython | |
run: | | |
chmod +x ./src/rapidfuzz/generate.sh | |
./src/rapidfuzz/generate.sh | |
# for cython tests inplace installation is required | |
- name: build | |
run: CXXFLAGS=-DCYTHON_TRACE_NOGIL=1 pip install -e . -v | |
- name: Test with pytest and generate coverage info | |
run: | | |
PYTHONPATH=$(pwd)/src coverage run -m pytest tests | |
coverage xml | |
coverage report | |
- uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
flags: unittests | |
fail_ci_if_error: true | |
verbose: true |