Skip to content

Commit 7216b77

Browse files
committed
Install in venv
1 parent b5847db commit 7216b77

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/linuxbrew.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ jobs:
1818
brew update
1919
brew install python@${{ matrix.python }} gcc libxml2 libxmlsec1 pkg-config
2020
echo "/home/linuxbrew/.linuxbrew/opt/python@${{ matrix.python }}/libexec/bin" >> $GITHUB_PATH
21-
- name: Install python dependencies
21+
- name: Build wheel
2222
run: |
23+
python3 -m venv build_venv
24+
source build_venv/bin/activate
2325
pip3 install --upgrade setuptools wheel build
24-
- name: Build linux_x86_64 wheel
25-
run: |
2626
export CFLAGS="-I$(brew --prefix)/include"
2727
export LDFLAGS="-L$(brew --prefix)/lib"
2828
python3 -m build
2929
rm -rf build/
30-
- name: Install test dependencies
30+
- name: Run tests
3131
run: |
32+
python3 -m venv test_venv
33+
source test_venv/bin/activate
3234
pip3 install --upgrade -r requirements-test.txt
3335
pip3 install xmlsec --only-binary=xmlsec --no-index --find-links=dist/
34-
- name: Run tests
35-
run: |
3636
pytest -v --color=yes

0 commit comments

Comments
 (0)