diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ca3e887..261c0639 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,8 +52,6 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive - - name: Install flint - run: brew install flint - name: Setup ccache uses: Chocobo1/setup-ccache-action@v1 with: @@ -61,6 +59,12 @@ jobs: override_cache_key: c++-tests-macos-latest - name: Install Ninja run: pipx install ninja + - if: runner.os == 'macOS' + name: Install flint + run: | + brew install gmp mpfr ntl + git clone --branch v2.9.0 --depth 1 https://github.com/flintlib/flint2.git + cd flint2 && ./configure && make -j 3 && make install - name: Configure CMake run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release - name: Build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e4589c4d..17e8872b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,9 +25,6 @@ jobs: with: fetch-depth: 0 submodules: recursive - - if: runner.os == 'macOS' - name: Install flint - run: brew install flint - if: matrix.runs-on != 'ubuntu-latest' name: Setup ccache uses: Chocobo1/setup-ccache-action@v1 @@ -35,6 +32,12 @@ jobs: prepend_symlinks_to_path: false windows_compile_environment: msvc override_cache_key: wheels-${{ matrix.runs-on }} + - if: runner.os == 'macOS' + name: Install flint + run: | + brew install gmp mpfr ntl + git clone --branch v2.9.0 --depth 1 https://github.com/flintlib/flint2.git + cd flint2 && ./configure && make -j 3 && make install - name: Build wheels uses: pypa/cibuildwheel@v2.16 - name: Verify clean directory diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 314a450d..1470683d 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -23,13 +23,10 @@ jobs: matrix: runs-on: [ubuntu-latest] python-version: ["3.8", "3.9", "3.10", "3.11"] - flint-inst-cmd: [sudo apt-get install libflint-dev] include: - runs-on: macos-latest - flint-inst-cmd: brew install flint python-version: 3.8 - runs-on: macos-latest - flint-inst-cmd: brew install flint python-version: 3.11 steps: - uses: actions/checkout@v4 @@ -47,8 +44,15 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: "pip" - - name: Install dependencies - run: ${{ matrix.flint-inst-cmd }} + - name: Install flint (Linux) + if: matrix.runs-on == 'ubuntu-latest' + run: sudo apt-get install libflint-dev + - name: Install flint (macOS) + if: matrix.runs-on == 'macos-latest' + run: | + brew install gmp mpfr ntl + git clone --branch v2.9.0 --depth 1 https://github.com/flintlib/flint2.git + cd flint2 && ./configure && make -j 3 && make install - name: Set up mold as linker (Linux only) uses: rui314/setup-mold@v1 - name: Test on 🐍 ${{ matrix.python-version }} diff --git a/pyproject.toml b/pyproject.toml index fb5d854b..49167b8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -148,6 +148,9 @@ filterwarnings = [ "error", "ignore:pkg_resources.*:DeprecationWarning:", "ignore:.*qiskit.__qiskit_version__.*:DeprecationWarning:qiskit:", + "ignore:.*qiskit.utils.algorithm_globals.QiskitAlgorithmGlobals*:DeprecationWarning:qiskit", + "ignore:.*Building a flow controller with keyword arguments is going to be deprecated*:PendingDeprecationWarning:qiskit", + "ignore:.*qiskit.extensions module is pending deprecation*:PendingDeprecationWarning:qiskit", ] [tool.coverage]