-
Notifications
You must be signed in to change notification settings - Fork 102
66 lines (59 loc) · 1.81 KB
/
build.yml
File metadata and controls
66 lines (59 loc) · 1.81 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
name: Build
on:
push:
branches:
- master
- branch-*
- dogfood-*
workflow_dispatch:
schedule:
# Nightly build at 2 AM UTC for shadow analysis
- cron: '0 2 * * *'
env:
PYTHON_VERSION: 3.9.5
IS_COMMUNITY: true
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
analyze:
runs-on: github-ubuntu-latest-s
name: Build
permissions:
id-token: write
contents: write
strategy:
fail-fast: false
matrix:
include:
- name: "Analysis on SonarQube NEXT"
sonarqube-instance: "next"
sonar-project-key: "org.sonarsource.python:python"
- name: "Analysis on Sonarcloud.io"
sonarqube-instance: "sqc-eu"
sonar-project-key: "SonarSource_sonar-python"
- name: "Analysis on SonarQube.us"
sonarqube-instance: "sqc-us"
sonar-project-key: "SonarSource_sonar-python"
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup submodules
run: |
git submodule update --init --jobs 4
cd python-frontend/typeshed_serializer/resources/python-type-stubs
git sparse-checkout set stubs/sklearn
git checkout
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
with:
version: 2025.12.12
cache: false
env:
MISE_ENV: test-and-analyze
- name: Remove private directory
run: rm -rf private
- name: Analyze
uses: ./.github-commons/actions/analyze
with:
sonarqube-instance: ${{ matrix.sonarqube-instance }}
sonar-project-key: ${{ matrix.sonar-project-key }}
disable-caching: true