Skip to content

Issue stratisd 3663 #1369

Issue stratisd 3663

Issue stratisd 3663 #1369

Workflow file for this run

---
name: stratisd nightly
# yamllint disable-line rule:truthy
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: 15 3 * * *
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
python-based-tests:
strategy:
matrix:
include:
- toolchain: 1.80.1 # CURRENT DEVELOPMENT RUST TOOLCHAIN
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run apt-get update
run: sudo apt-get -q update
- name: Install dependencies
run: >
DEBIAN_FRONTEND=noninteractive
sudo apt-get install -y
asciidoc
clang
curl
libblkid-dev
libcryptsetup-dev
libdbus-1-dev
libdevmapper-dev
libsystemd-dev
libudev-dev
make
thin-provisioning-tools
udev
xfsprogs
- name: Install Python dependencies
run: >
sudo python -m pip install
dbus-python
dbus-client-gen
dbus-python-client-gen
justbytes
psutil
pyudev
- uses: dtolnay/rust-toolchain@master
with:
components: cargo
toolchain: ${{ matrix.toolchain }}
- name: Build stratisd
run: PROFILEDIR=debug make -f Makefile build-all
- name: Install stratisd
run: sudo make PROFILEDIR=debug -f Makefile install
- name: Workaround for dbus inotify
run: sudo cp stratisd.conf /usr/share/dbus-1/system.d
- name: Reload udev
run: sudo udevadm control --reload
- name: Tests using Rust ${{ matrix.toolchain }}
run: >
sudo make
RUST_LOG=stratisd=debug
STRATISD=/usr/libexec/stratisd
STRATIS_PREDICT_USAGE=/usr/bin/stratis-predict-usage
PYTHONPATH=./src
predict-tests
working-directory: ./tests/client-dbus