From ead48226fc35b55b18bfef41369f33b6016dac39 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 29 Sep 2021 16:05:35 +0000 Subject: [PATCH] ci: split out checks from tests Split out all checks that verify documentation, spelling and that test data is update to date from the actual unit and integration tests. --- .github/workflows/checks.yml | 58 ++++++++++++++++++++++++++++++++++++ .github/workflows/tests.yml | 54 --------------------------------- 2 files changed, 58 insertions(+), 54 deletions(-) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 00000000..59b19e81 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,58 @@ +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@e4de123f43b95e99dfe8eed0bd5a1cd58db50715 + with: + image: ghcr.io/osbuild/osbuild-ci:latest-202102191311 + 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 + skip: ./.git,coverity,rpmbuild,samples diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 679b2e99..f7561439 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,57 +35,3 @@ jobs: -v - name: Send coverage to codecov.io run: bash <(curl -s https://codecov.io/bash) - - 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@e4de123f43b95e99dfe8eed0bd5a1cd58db50715 - with: - image: ghcr.io/osbuild/osbuild-ci:latest-202102191311 - 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 - skip: ./.git,coverity,rpmbuild,samples