Issue stratisd 3663 #1353
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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.0 # 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: Build test extras | |
run: PROFILEDIR=debug make -f Makefile build-test-extras | |
- 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 |