Add logs to see the libxml2 version that is beign used by xmlsec and … #806
Workflow file for this run
This file contains hidden or 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: linuxbrew | |
| on: [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref_name != 'master' }} | |
| jobs: | |
| linuxbrew: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| env: | |
| # For some unknown reason, linuxbrew tries to use "gcc-11" by default, which doesn't exist. | |
| CC: gcc | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install brew | |
| run: | | |
| sudo apt install -y build-essential procps curl file git | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH | |
| - name: Install build dependencies | |
| run: | | |
| brew update | |
| brew install python@${{ matrix.python }} gcc libxml2 libxmlsec1 pkg-config | |
| echo "/home/linuxbrew/.linuxbrew/opt/python@${{ matrix.python }}/libexec/bin" >> $GITHUB_PATH | |
| - name: Build wheel | |
| run: | | |
| python3 -m venv build_venv | |
| source build_venv/bin/activate | |
| pip3 install --upgrade setuptools wheel build | |
| export CFLAGS="-I$(brew --prefix)/include" | |
| export LDFLAGS="-L$(brew --prefix)/lib" | |
| python3 -m build | |
| rm -rf build/ | |
| - name: Run tests | |
| run: | | |
| python3 -m venv test_venv | |
| source test_venv/bin/activate | |
| export CFLAGS="-I$(brew --prefix)/include" | |
| export LDFLAGS="-L$(brew --prefix)/lib" | |
| export PKG_CONFIG_PATH="$(brew --prefix)/opt/libxml2/lib/pkgconfig" | |
| pip3 install --upgrade --no-binary=lxml -r requirements-test.txt | |
| python3 -c "from lxml import etree; print('lxml libxml2 compiled:', etree.LIBXML_COMPILED_VERSION); print('lxml libxml2 runtime:', etree.LIBXML_VERSION)" | |
| pip3 install xmlsec --only-binary=xmlsec --no-index --find-links=dist/ | |
| python3 -c "import xmlsec; print('xmlsec libxml2 compiled:', xmlsec.get_libxml_compiled_version()); print('xmlsec libxml2 runtime:', xmlsec.get_libxml_version()); print('xmlsec libxmlsec:', xmlsec.get_libxmlsec_version())" | |
| pytest -v --color=yes |