-
Notifications
You must be signed in to change notification settings - Fork 23
58 lines (54 loc) · 1.52 KB
/
Copy pathci.yml
File metadata and controls
58 lines (54 loc) · 1.52 KB
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
name: CI
on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install shellcheck
run: sudo apt-get install -y shellcheck
- name: Run shellcheck
run: shellcheck -s bash -x -a --color -e "SC1090,SC1091,SC2034" ./bin/* ./lib/*.bash
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install flake8
run: pip install flake8
- name: Run flake8
run: flake8 ./lib/pylib/
test:
runs-on: ubuntu-${{ matrix.ubuntu }}
strategy:
fail-fast: false
matrix:
ubuntu: ['22.04', '24.04']
env:
CI_RUN: '1'
ODOO_HELPER_INSTALL_PATH: ${{ github.workspace }}
TEST_TMP_DIR: /tmp/odoo-helper-tests
DEBIAN_FRONTEND: noninteractive
ALWAYS_ANSWER_YES: '1'
LANG: C.UTF-8
LC_ALL: C.UTF-8
LANGUAGE: C.UTF-8
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Setup test user and locale
run: |
sudo apt-get update -qq && sudo apt-get install -yqq adduser sudo locales git
sudo update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8
git config --global user.email "test-oh@test.test"
git config --global user.name "test-oh"
- name: Install odoo-helper-scripts
run: sudo -E bash install-system.bash
- name: Run tests
run: bash tests/test.bash