Skip to content

Commit 9946a94

Browse files
committed
Enable dynamic link installs in CI
1 parent 9bbc89a commit 9946a94

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
python-version: 3.6
3333
- name: Install isal
34-
run: sudo apt-get install libisal-dev
34+
run: sudo apt-get install nasm
3535
- name: Install tox
3636
run: pip install tox
3737
- name: Build docs
@@ -63,8 +63,14 @@ jobs:
6363
- name: Install nasm
6464
run: sudo apt install nasm
6565
if: ${{ matrix.linking_method == 'static' }}
66-
- name: Run tests
66+
- name: Run tests (dynamic link)
67+
run: tox -e py3
68+
env:
69+
PYTHON_ISAL_LINK_DYNAMIC: True
70+
if: ${{ matrix.linking_method == 'dynamic' }}
71+
- name: Run tests (dynamic link)
6772
run: tox -e py3
73+
if: ${{ matrix.linking_method == 'static' }}
6874
- name: Upload coverage report
69-
if: ${{ matrix.python-version == 3.6 }} # Only upload coverage once
75+
if: ${{ matrix.python-version == 3.6 && matrix.linking_method == 'static'}} # Only upload coverage once
7076
uses: codecov/codecov-action@v1

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ envlist=py3
55
[testenv]
66
deps=coverage
77
pytest
8+
passenv=
9+
PYTHON_ISAL_LINK_DYNAMIC
810
commands =
911
# Create HTML coverage report for humans and xml coverage report for external services.
1012
coverage run --source={envsitepackagesdir}/isal -m py.test -v tests

0 commit comments

Comments
 (0)