Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR checks workflow update #53

Merged
merged 2 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions .github/workflows/pr_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,62 +9,7 @@ permissions:
contents: read

jobs:
centos7:
# git >= 2.18 is needed for submodules checkout, disable for now
if: false
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:centos7
env:
PYLINT: pylint-2
steps:
- name: Enable EPEL and install pylint and dependencies
run: |
yum install -y epel-release
yum install -y python2-pylint libxml2-python git

- name: Checkout change
uses: actions/checkout@v3
with:
submodules: recursive
path: anabot

- name: Build base test
run: |
pushd $GITHUB_WORKSPACE/anabot/tests
./run_suite.sh
popd

centos_stream8:
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream8
env:
PYLINT: pylint-3
steps:
- name: Enable EPEL and install pylint and dependencies
run: |
dnf install -y 'dnf-command(config-manager)'
dnf install -y python3-gobject-base
dnf config-manager --set-enabled powertools
dnf install -y epel-release epel-next-release
dnf install -y python3-pylint python3-libxml2 git

- name: Checkout change
uses: actions/checkout@v3
with:
submodules: recursive
path: anabot

- name: Build base test
run: |
pushd $GITHUB_WORKSPACE/anabot/tests
./run_suite.sh
popd

centos_stream9:
# pylint is not available for centos_stream9, disable for now
if: false
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream9
Expand Down
2 changes: 1 addition & 1 deletion tests/run_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ANABOT_DIR=`pwd`
#DOGTAIL_DIR=`install_dogtail $ANABOT_DIR/dogtail/dogtail-*.tar.gz`
# pylint's return code is bit-ORed value of statuses. See pylint manpage.
# 3 means: 1 - fatal message + 2 - error message
${PYLINT:-pylint} --init-hook="import site; site.addsitedir('./lib/python2.7/site-packages/')" anabot; PYLINT_RETCODE=$?
${PYLINT:-pylint} --init-hook="import site; site.addsitedir('./lib/python3.9/site-packages/')" anabot; PYLINT_RETCODE=$?
test $[PYLINT_RETCODE & 3] -ne 0 && SCORE=$[SCORE+1]

#rm -rf -- "$DOGTAIL_DIR"
Expand Down
Loading