name: linuxbrew on: [push, pull_request] jobs: linuxbrew: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Setup Python uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} - name: Install build dependencies 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)" test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile brew update brew install python gcc libxml2 libxmlsec1 pkg-config pip3 install --upgrade setuptools wheel build ln -s $(brew --prefix)/bin/gcc-11 $(brew --prefix)/bin/gcc-5 - name: Build linux_x86_64 wheel run: | python3 -m build rm -rf build/ - name: Install test dependencies run: | pip3 install --upgrade -r requirements-test.txt pip3 install xmlsec --only-binary=xmlsec --no-index --find-links=dist/ - name: Run tests run: | pytest -v --color=yes