Skip to content

💥 Introducing ClusterComplete: Exact SiDB Logic Simulation with well over 50 DBs #299

💥 Introducing ClusterComplete: Exact SiDB Logic Simulation with well over 50 DBs

💥 Introducing ClusterComplete: Exact SiDB Logic Simulation with well over 50 DBs #299

Workflow file for this run

name: pyfiction CI
on:
push:
branches: [ 'main' ]
paths:
- 'bindings/pyfiction/**'
- '**/*.py'
- '**/*.hpp'
- '**/*.cpp'
- '**/*.cmake'
- '**/CMakeLists.txt'
- 'libs/**'
- '.github/workflows/python-bindings.yml'
pull_request:
branches: [ 'main' ]
paths:
- 'bindings/pyfiction/**'
- '**/*.py'
- '**/*.hpp'
- '**/*.cpp'
- '**/*.cmake'
- '**/CMakeLists.txt'
- 'libs/**'
- '.github/workflows/python-bindings.yml'
workflow_run:
workflows: [ "pyfiction Docstring Generator" ]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
Z3_VERSION: 4.10.0
ENABLE_Z3: 'ON'
ENABLE_ALGLIB: 'ON'
jobs:
build_and_test:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python_version: [ '3.8.x', '3.12.x' ]
include:
- os: ubuntu-latest
z3_platform: linux
architecture: x64
alglib: ${{ env.ENABLE_ALGLIB }}

Check failure on line 54 in .github/workflows/python-bindings.yml

View workflow run for this annotation

GitHub Actions / pyfiction CI

Invalid workflow file

The workflow is not valid. .github/workflows/python-bindings.yml (Line: 54, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.ENABLE_ALGLIB .github/workflows/python-bindings.yml (Line: 58, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.ENABLE_ALGLIB
- os: macos-latest
z3_platform: macOS
architecture: arm64
alglib: ${{ env.ENABLE_ALGLIB }}
- os: windows-latest
z3_platform: windows
architecture: x64
alglib: 'OFF'
name: pyfiction on ${{matrix.os}} with Python ${{matrix.python_version}}
runs-on: ${{matrix.os}}
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: '${{matrix.os}}-pyfiction'
variant: ccache
save: true
max-size: 10G
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python_version}}
cache: 'pip'
- if: runner.os == 'Linux'
name: Setup mold
uses: rui314/setup-mold@v1
- name: Setup Z3 Solver
id: z3
uses: cda-tum/setup-z3@v1
with:
version: ${{env.Z3_VERSION}}
platform: ${{matrix.z3_platform}}
architecture: ${{matrix.architecture}}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- if: ${{ matrix.alglib == 'ON'}}
name: Setup ALGLIB
run: |
git clone https://github.com/S-Dafarra/alglib-cmake.git
cd alglib-cmake
mkdir build && cd build
cmake ..
make -j4
sudo make install
- name: Build pyfiction
working-directory: ${{github.workspace}}
run: z3=${{env.ENABLE_Z3}} alglib=${{matrix.alglib}} pip install '.[test]'
- name: Test
working-directory: ${{github.workspace}}
run: python -m unittest discover --verbose