summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 09:15:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 09:15:24 +0000
commitfd6bd8e3ee83881f2f40686b21502926ddf977af (patch)
tree6093d44e4716db2c1f768c23c78359e34bb8e819 /.github
parentAdding upstream version 2.3~rc3. (diff)
downloadnvme-stas-fd6bd8e3ee83881f2f40686b21502926ddf977af.tar.xz
nvme-stas-fd6bd8e3ee83881f2f40686b21502926ddf977af.zip
Adding upstream version 2.3~rc4.upstream/2.3_rc4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/meson-test.yml22
1 files changed, 13 insertions, 9 deletions
diff --git a/.github/workflows/meson-test.yml b/.github/workflows/meson-test.yml
index 7ef26fc..24c6e57 100644
--- a/.github/workflows/meson-test.yml
+++ b/.github/workflows/meson-test.yml
@@ -38,13 +38,15 @@ jobs:
python3 -m pip install --upgrade dasbus pylint pyflakes PyGObject
python3 -m pip install --upgrade vermin pyfakefs importlib-resources
- - name: "INSTALL: libnvme"
+ - name: "INSTALL: libnvme dependencies"
+ run: |
+ sudo apt-get install --yes --quiet swig
+ sudo apt-get install --yes --quiet libjson-c-dev
+
+ - name: "SETUP: [nvme-stas, libnvme]"
run: |
- sudo apt-get install --yes --quiet swig libjson-c-dev
meson subprojects download
- meson setup .build subprojects/libnvme -Dlibdbus=disabled -Dopenssl=disabled -Dbuildtype=release -Dprefix=/usr -Dpython=enabled
- ninja -C .build
- sudo meson install -C .build
+ meson setup --buildtype=release --sysconfdir=/etc --prefix=/usr -Dman=true -Dhtml=true -Dlibnvme:python=enabled -Dlibnvme:libdbus=disabled -Dlibnvme:openssl=disabled -Dlibnvme:json-c=disabled -Dlibnvme:keyutils=disabled .build
- name: "CONFIG: PYTHONPATH"
run: |
@@ -55,7 +57,7 @@ jobs:
with:
action: test
directory: .build
- setup-options: -Dman=true -Dhtml=true
+ setup-options: --buildtype=release --sysconfdir=/etc --prefix=/usr -Dman=true -Dhtml=true -Dlibnvme:python=enabled -Dlibnvme:libdbus=disabled -Dlibnvme:openssl=disabled -Dlibnvme:json-c=disabled -Dlibnvme:keyutils=disabled
options: --print-errorlogs --suite nvme-stas
# Preserve meson's log file on failure
@@ -67,9 +69,11 @@ jobs:
- name: "Generate coverage report"
run: |
- python3 -m pip install pytest
- python3 -m pip install pytest-cov
- PYTHONPATH=.build:.build/subprojects/libnvme:/usr/lib/python3/dist-packages/ pytest --cov=./staslib --cov-report=xml test/test-*.py
+ python3 -m pip install --upgrade pytest
+ python3 -m pip install --upgrade pytest-cov
+ echo $( pwd )
+ cp -r .build/staslib/* ./staslib/.
+ pytest --cov=./staslib --cov-report=xml test/test-*.py
- uses: codecov/codecov-action@v3
with: