Update the osbuild-ci container and privdocker action to the most recent
builds.
This changes the ostree-image-tests since the Fedora update pulled in
util-linux/fdisk changes that align partition sizes. Hence, the ostree
tests need to be changed to have aligned partition sizes as well. For
more information, see:
commit 921c7da55ec78350e4067b3fd6b7de6f299106ee
Author: Karel Zak <kzak@redhat.com>
Date: Thu Jan 27 10:50:45 2022 +0100
libfdisk: (gpt) align size of partition by default
Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
76 lines
1.9 KiB
YAML
76 lines
1.9 KiB
YAML
name: Checks
|
|
|
|
on: [pull_request, push]
|
|
|
|
jobs:
|
|
documentation:
|
|
name: "📚 Documentation"
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: docker.io/library/python:3.7
|
|
steps:
|
|
- name: Install Dependencies
|
|
run: |
|
|
pip install docutils
|
|
|
|
- name: Clone repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: osbuild
|
|
|
|
- name: Generate Documentation
|
|
run: |
|
|
make \
|
|
-f osbuild/Makefile \
|
|
SRCDIR=osbuild \
|
|
BUILDDIR=build \
|
|
RST2MAN=rst2man.py \
|
|
man
|
|
|
|
- name: Verify Documentation
|
|
working-directory: build
|
|
run: |
|
|
test -d docs
|
|
test -f docs/osbuild.1
|
|
|
|
test_data:
|
|
name: "Regenerate Test Data"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Clone Repository"
|
|
uses: actions/checkout@v2
|
|
- name: "Regenerate Test Data"
|
|
uses: osbuild/containers/src/actions/privdocker@1e349b1c69884f9f38f7afa567869b975104828c
|
|
with:
|
|
image: ghcr.io/osbuild/osbuild-ci:latest-202209070757
|
|
run: |
|
|
make test-data
|
|
git diff --exit-code -- ./test/data
|
|
|
|
codespell:
|
|
name: "Spell check"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: codespell-project/actions-codespell@master
|
|
with:
|
|
ignore_words_list: msdos, pullrequest
|
|
skip: ./.git,coverity,rpmbuild,samples
|
|
|
|
source:
|
|
name: "Source code checks"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Clone Repository"
|
|
uses: actions/checkout@v2
|
|
- name: "Run Tests"
|
|
uses: osbuild/containers/src/actions/privdocker@1e349b1c69884f9f38f7afa567869b975104828c
|
|
with:
|
|
image: ghcr.io/osbuild/osbuild-ci:latest-202209070757
|
|
run: |
|
|
git config --global --add safe.directory /osb/workdir
|
|
python3 -m pytest \
|
|
test/src/test_pylint.py \
|
|
-k autopep8 \
|
|
--rootdir=. \
|
|
-v
|