File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : linuxbrew
2+ on : [push, pull_request]
3+ jobs :
4+ linuxbrew :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v1
8+ - name : Setup Python
9+ uses : actions/setup-python@v2
10+ with :
11+ python-version : ${{ matrix.python }}
12+ - name : Install build dependencies
13+ run : |
14+ sudo apt install -y build-essential procps curl file git
15+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
16+ test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
17+ test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
18+ echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
19+ brew update
20+ brew install python gcc libxml2 libxmlsec1 pkg-config
21+ pip3 install --upgrade setuptools wheel
22+ ln -s $(brew --prefix)/bin/gcc-11 $(brew --prefix)/bin/gcc-5
23+ - name : Build linux_x86_64 wheel
24+ run : |
25+ python3 setup.py bdist_wheel
26+ rm -rf build/
27+ - name : Install test dependencies
28+ run : |
29+ pip3 install --upgrade -r requirements-test.txt
30+ pip3 install xmlsec --only-binary=xmlsec --no-index --find-links=dist/
31+ - name : Run tests
32+ run : |
33+ pytest -v --color=yes
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ python-xmlsec
1111 :target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22manylinux2010%22
1212.. image :: https://github.com/mehcode/python-xmlsec/workflows/MacOS/badge.svg
1313 :target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22MacOS%22
14+ .. image :: https://github.com/mehcode/python-xmlsec/workflows/linuxbrew/badge.svg
15+ :target: https://github.com/mehcode/python-xmlsec/actions?query=workflow%3A%22linuxbrew%22
1416.. image :: https://codecov.io/gh/mehcode/python-xmlsec/branch/master/graph/badge.svg
1517 :target: https://codecov.io/gh/mehcode/python-xmlsec
1618.. image :: https://img.shields.io/readthedocs/xmlsec/latest?logo=read-the-docs
You can’t perform that action at this time.
0 commit comments