Skip to content

extensions/python: Mark pywrapfst_test as WILL_FAIL #47

extensions/python: Mark pywrapfst_test as WILL_FAIL

extensions/python: Mark pywrapfst_test as WILL_FAIL #47

# Copyright 2026 The OpenFst Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# See https://github.com/actions/runner-images.
name: "CMake (x64 Linux)"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
permissions:
contents: read
actions: write
jobs:
build-and-test-x64-linux-cmake:
name: Build and Test
runs-on: ubuntu-latest
env:
cache-name: ${{github.job}}
cache-path: "./build"
steps:
- uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
- name: Check Python
run: python --version
- name: Install dependendcies
run: |
python3 -m pip install --break-system-packages absl-py cython
- name: Restore CMake cache
uses: actions/cache/restore@v5
id: cmake-cache-restore
with:
path: ${{env.cache-path}}
key: cmake-cache-${{env.cache-name}}
restore-keys: cmake-cache-${{env.cache-name}}-
- name: Configure
run: >-
cmake -S . -B build
-DOPENFST_ENABLE_BIN=ON -DOPENFST_BUILD_TESTS=ON -DBUILD_SHARED_LIBS=ON
-DOPENFST_ENABLE_FSTS=ON -DOPENFST_ENABLE_GRM=ON -DOPENFST_ENABLE_PYTHON=ON
-DOPENFST_ENABLE_CATEGORIAL=ON
- name: Build
run: |
cmake --build build -j$(nproc)
- name: Test
run: |
ctest --test-dir build --output-on-failure -j$(nproc)
- name: Save new cache for main
if: github.ref == 'refs/heads/main'
uses: actions/cache/save@v5
with:
path: ${{env.cache-path}}
key: cmake-cache-${{env.cache-name}}-${{github.run_id}}