summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Styk <mastyk@redhat.com>2020-03-27 16:17:40 +0100
committerMartin Styk <mastyk@redhat.com>2020-03-27 16:17:40 +0100
commite96a7a2c4995cd334f1e7b5a8061d1b4405f2dfc (patch)
tree82cc219e7e84df4add522862e1e9f3ce4dd88a81
parenta12ba3a21639d92cdb63fa1da7b9ceb7f58eaf87 (diff)
ci: add new check-pylint/check-docs
Signed-off-by: Martin Styk <mastyk@redhat.com>
-rw-r--r--.github/workflows/review-checks.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/review-checks.yml b/.github/workflows/review-checks.yml
new file mode 100644
index 0000000..7601037
--- /dev/null
+++ b/.github/workflows/review-checks.yml
@@ -0,0 +1,45 @@
+name: Review-checks
+
+on: [pull_request]
+
+jobs:
+ check-pylint:
+ runs-on: ubuntu-latest
+ container:
+ image: quay.io/beaker/beaker-lint
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Run Pylint
+ run: |
+ set -o pipefail
+ Misc/run-pylint.sh --reports=n --disable=W \
+ --extension-pkg-whitelist=lxml \
+ bkr.server bkr.labcontroller bkr.client bkr.common \
+ | tee pylint.out
+
+ check-docs:
+ runs-on: ubuntu-latest
+ container:
+ image: centos:7
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Install utils
+ run: |
+ yum install -y git wget
+ - name: Fetch Beaker repository
+ run: |
+ wget https://beaker-project.org/yum/beaker-server-RedHatEnterpriseLinux.repo -P /etc/yum.repos.d/
+ - name: Install Beaker dependency from specfile
+ run: |
+ yum-builddep *.spec -y
+ - name: Build documentation
+ run: |
+ make -C documentation html SPHINXOPTS="-W"
+ mv documentation/_build/html /__w
+ - uses: actions/upload-artifact@v1
+ with:
+ name: beaker-docs
+ path: /home/runner/work/html
+