|
16 | 16 | runs-on: ubuntu-latest |
17 | 17 | steps: |
18 | 18 | - name: Checkout |
19 | | - uses: actions/checkout@v5 |
| 19 | + uses: actions/checkout@v6 |
20 | 20 |
|
21 | 21 | - name: run commitlint |
22 | 22 | uses: wagoid/commitlint-github-action@v5 |
|
25 | 25 | runs-on: ubuntu-latest |
26 | 26 | steps: |
27 | 27 | - name: Checkout |
28 | | - uses: actions/checkout@v5 |
| 28 | + uses: actions/checkout@v6 |
29 | 29 |
|
30 | 30 | - name: run flake |
31 | 31 | uses: ./.github/actions/run-flake |
|
34 | 34 | runs-on: ubuntu-latest |
35 | 35 | steps: |
36 | 36 | - name: Checkout |
37 | | - uses: actions/checkout@v5 |
| 37 | + uses: actions/checkout@v6 |
38 | 38 |
|
39 | 39 | - name: run isort |
40 | 40 | uses: ./.github/actions/run-isort |
|
43 | 43 | runs-on: ubuntu-latest |
44 | 44 | steps: |
45 | 45 | - name: Checkout |
46 | | - uses: actions/checkout@v5 |
| 46 | + uses: actions/checkout@v6 |
47 | 47 |
|
48 | 48 | - name: black |
49 | 49 | uses: psf/black@stable |
|
63 | 63 |
|
64 | 64 | steps: |
65 | 65 | - name: Checkout |
66 | | - uses: actions/checkout@v5 |
| 66 | + uses: actions/checkout@v6 |
67 | 67 | with: |
68 | 68 | fetch-depth: 0 |
69 | 69 |
|
|
79 | 79 | PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_URL: ${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_URL }} |
80 | 80 | uses: ./.github/actions/all-tests |
81 | 81 |
|
| 82 | + # Add PR number to coverage file for SonarCloud analysis |
| 83 | + - name: Inject PR number into coverage file |
| 84 | + if: github.event_name == 'pull_request' |
| 85 | + run: | |
| 86 | + sed -i '2i <!-- PR ${{ github.event.number }} -->' coverage.xml |
| 87 | + echo "PR Number: ${{ github.event.number }} injected into coverage file" |
| 88 | +
|
| 89 | + # Upload coverage artifact to Github for SonarCloud (only from Python 3.11) |
| 90 | + - name: Upload coverage as artifact |
| 91 | + if: matrix.python-version == '3.11' |
| 92 | + uses: actions/upload-artifact@v6 |
| 93 | + with: |
| 94 | + name: coverage |
| 95 | + path: ./coverage.xml |
| 96 | + |
82 | 97 | - name: Upload coverage to Codecov |
83 | 98 | uses: codecov/codecov-action@v5 |
84 | 99 | with: |
|
94 | 109 |
|
95 | 110 | steps: |
96 | 111 | - name: Checkout repository |
97 | | - uses: actions/checkout@v5 |
| 112 | + uses: actions/checkout@v6 |
98 | 113 | with: |
99 | 114 | fetch-depth: 0 |
100 | 115 |
|
|
0 commit comments