-
Notifications
You must be signed in to change notification settings - Fork 476
108 lines (88 loc) · 2.41 KB
/
Copy pathpip-install.yml
File metadata and controls
108 lines (88 loc) · 2.41 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: pip install
on:
push:
branches: [master]
paths:
- 'setup.py'
- 'pyproject.toml'
- 'MANIFEST.in'
- 'config/**'
- 'codechecker_common/**'
- 'analyzer/**'
- 'web/**'
- 'tools/**'
- '.github/workflows/pip-install.yml'
- '.github/scripts/**'
pull_request:
paths:
- 'setup.py'
- 'pyproject.toml'
- 'MANIFEST.in'
- 'config/**'
- 'codechecker_common/**'
- 'analyzer/**'
- 'web/**'
- 'tools/**'
- '.github/workflows/pip-install.yml'
- '.github/scripts/**'
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pip-install-smoke:
name: "pip install (${{ matrix.os }}, Python ${{ matrix.python }})"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-latest, windows-latest]
python: ['3.9', '3.12', '3.13']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
- name: pip install .
run: pip install .
- name: Smoke test
run: |
CodeChecker --help
CodeChecker version
report-converter --help
merge-clang-extdef-mappings --help
post-process-stats --help
tu_collector --help
- name: Verify data files installed
shell: bash
run: .github/scripts/verify_data_files.sh
pip-install-editable:
name: "pip install -e . (ubuntu, Python 3.12)"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: pip install -e .
run: pip install -e .
- name: Smoke test
run: |
CodeChecker --help
CodeChecker version
pip-install-analyze:
name: "pip install + analyze (ubuntu, Python 3.12)"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -y clang clang-tidy cppcheck jq
- name: pip install .
run: pip install .
- name: Test analyze and parse
run: .github/scripts/test_analyze_parse.sh