Fix puctuations and upgrade to version 0.8 #83
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: linux-macos | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/linux-macos.yaml' | |
- 'CMakeLists.txt' | |
- 'cmake/**' | |
- 'textsearch/csrc/**' | |
- 'textsearch/python/**' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/linux-macos.yaml' | |
- 'CMakeLists.txt' | |
- 'cmake/**' | |
- 'textsearch/csrc/**' | |
- 'textsearch/python/**' | |
concurrency: | |
group: linux-macos-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
linux-macos: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python dependencies | |
shell: bash | |
run: | | |
python3 -m pip install numpy regex | |
- name: Configure CMake | |
shell: bash | |
run: | | |
mkdir build | |
cd build | |
cmake -D CMAKE_BUILD_TYPE=Release .. | |
- name: Build textsearch for ubuntu | |
shell: bash | |
run: | | |
cd build | |
make -j2 | |
- name: Run tests | |
shell: bash | |
run: | | |
cd build | |
ctest --verbose |