-
Notifications
You must be signed in to change notification settings - Fork 4
91 lines (80 loc) · 2.33 KB
/
pr_checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Pull request checks
on:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
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
env:
PYLINT: pylint-3
steps:
- name: Enable EPEL and install pylint
run: |
dnf install -y 'dnf-command(config-manager)'
dnf config-manager --set-enabled crb
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