-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
124 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Blivet-GUI tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 3.*-devel | ||
|
||
jobs: | ||
build: | ||
name: blivetgui-tests | ||
runs-on: ubuntu-22.04 | ||
env: | ||
CI_CONTAINER: blivet-ci-blivetgui-tests | ||
steps: | ||
- name: Checkout blivet repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install podman | ||
run: | | ||
sudo apt -qq update | ||
sudo apt -y -qq install podman | ||
- name: Build the container | ||
run: | | ||
podman build --no-cache -t ${{ env.CI_CONTAINER }} -f misc/ci.Dockerfile . | ||
- name: Start the container | ||
run: | | ||
podman run -d -t --name ${{ env.CI_CONTAINER }} --privileged --volume "$(pwd):/app" --workdir "/app" ${{ env.CI_CONTAINER }} | ||
- name: Install Blivet-GUI test dependencies in the container | ||
run: | | ||
podman exec -it ${{ env.CI_CONTAINER }} bash -c "ansible-playbook -i "localhost," -c local /blivet-gui/misc/install-test-dependencies.yml" | ||
- name: Remove Blivet from the container (we want to install from source) | ||
run: | | ||
podman exec -it ${{ env.CI_CONTAINER }} bash -c "dnf -y remove python3-blivet --noautoremove" | ||
- name: Install Blivet build dependencies in the container | ||
run: | | ||
podman exec -it ${{ env.CI_CONTAINER }} bash -c "ansible-playbook -i "localhost," -c local misc/install-test-dependencies.yml" | ||
- name: Build and install Blivet in the container | ||
run: | | ||
podman exec -it ${{ env.CI_CONTAINER }} bash -c "python3 setup.py install --prefix=/usr" | ||
- name: Run Blivet-GUI static analysis in the container | ||
run: | | ||
podman exec -it ${{ env.CI_CONTAINER }} bash -c "cd /blivet-gui && make check" | ||
- name: Run Blivet-GUI unit tests in the container | ||
run: | | ||
podman exec -it ${{ env.CI_CONTAINER }} bash -c "cd /blivet-gui && make gui-test" |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# latest fedora image for running some of our tests in GH actions | ||
|
||
FROM registry.fedoraproject.org/fedora:latest | ||
|
||
RUN set -e; \ | ||
dnf install -y ansible python3-pip git which dnf-plugins-core; \ | ||
git clone --depth 1 https://github.com/storaged-project/ci.git; \ | ||
git clone --depth 1 https://github.com/storaged-project/blivet-gui.git; | ||
|
||
WORKDIR / |
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
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
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
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