Skip to content

Commit 6f79cbc

Browse files
authored
Merge pull request #893 from acolombier/chore/sync-branch-2.5-with-2.6
Merge branch '2.5' into '2.6'
2 parents 2c45387 + 70db5f4 commit 6f79cbc

45 files changed

Lines changed: 394 additions & 127 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-24.04
1616
if: github.event_name == 'push' || github.event_name == 'repository_dispatch'
1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@v7
1919
with:
2020
ref: main
2121
fetch-depth: 0
@@ -43,7 +43,7 @@ jobs:
4343
name: PDF
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v6
46+
- uses: actions/checkout@v7
4747
- name: Setup PDF Build Dependencies
4848
run: >
4949
sudo apt-get update && sudo apt-get install -y

.github/workflows/changelog.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Event Information
2222
run: echo "Event '${{ github.event.action }}' received from '${{ github.event.client_payload.repository }}'"
2323
- name: Check out repository
24-
uses: actions/checkout@v6
24+
uses: actions/checkout@v7
2525
with:
2626
ref: ${{ github.event.client_payload.branch }}
2727
- name: Set up Python
@@ -34,10 +34,9 @@ jobs:
3434
run: tools/update_changelog.py -b "${{ github.event.client_payload.branch }}"
3535
- name: Check if changes any changes were made
3636
run: echo "GIT_DIRTY=$(git diff --quiet ; printf "%d" "$?")" >> "${GITHUB_ENV}"
37-
- uses: EndBug/add-and-commit@v9
37+
- uses: EndBug/add-and-commit@v10
3838
if: env.GIT_DIRTY != null && env.GIT_DIRTY != '0'
3939
with:
40-
branch: ${{ github.event.client_payload.branch }}
4140
add: "source/chapters/appendix/changelog.rst"
4241
message: "appendix/changelog: Update changelog for ${{ github.event.client_payload.branch }} branch"
4342
author_name: mixxxbot

.github/workflows/pre-commit.yml

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,39 @@ jobs:
88
pre-commit:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v6
12-
- uses: actions/setup-python@v6
13-
- uses: pre-commit/action@v3.0.1
14-
env:
15-
SKIP: rstcheck
11+
- name: "Check out repository"
12+
uses: actions/checkout@v7
13+
with:
14+
# Fetch the previous commit to be able to check for changes
15+
fetch-depth: 2
1616

17-
- name: "Generate patch file"
18-
if: failure()
19-
run: |
20-
git diff-index -p HEAD > "${PATCH_FILE}"
21-
[ -s "${PATCH_FILE}" ] && echo "UPLOAD_PATCH_FILE=${PATCH_FILE}" >> "${GITHUB_ENV}"
22-
env:
23-
PATCH_FILE: pre-commit.patch
17+
- name: "Detect code style issues (push)"
18+
uses: pre-commit/action@v3.0.1
19+
if: github.event_name == 'push'
20+
env:
21+
SKIP: rstcheck,ignore-pot-creation-date
2422

25-
- name: "Upload patch artifact"
26-
if: failure() && env.UPLOAD_PATCH_FILE != null
27-
uses: actions/upload-artifact@v6
28-
with:
29-
name: ${{ env.UPLOAD_PATCH_FILE }}
30-
path: ${{ env.UPLOAD_PATCH_FILE }}
23+
- name: "Detect code style issues (pull_request)"
24+
uses: pre-commit/action@v3.0.1
25+
if: github.event_name == 'pull_request'
26+
env:
27+
SKIP: rstcheck
28+
with:
29+
# HEAD is the not yet integrated PR merge commit +refs/pull/xxxx/merge
30+
# HEAD^1 is the PR target branch and HEAD^2 is the HEAD of the source branch
31+
extra_args: --from-ref HEAD^1 --to-ref HEAD
32+
33+
- name: "Generate patch file"
34+
if: failure()
35+
run: |
36+
git diff-index -p HEAD > "${PATCH_FILE}"
37+
[ -s "${PATCH_FILE}" ] && echo "UPLOAD_PATCH_FILE=${PATCH_FILE}" >> "${GITHUB_ENV}"
38+
env:
39+
PATCH_FILE: pre-commit.patch
40+
41+
- name: "Upload patch artifact"
42+
if: failure() && env.UPLOAD_PATCH_FILE != null
43+
uses: actions/upload-artifact@v7
44+
with:
45+
name: ${{ env.UPLOAD_PATCH_FILE }}
46+
path: ${{ env.UPLOAD_PATCH_FILE }}

.github/workflows/sphinx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Clone repository
13-
uses: actions/checkout@v6
13+
uses: actions/checkout@v7
1414
- name: Set up Python
1515
uses: actions/setup-python@v6
1616
with:
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Clone repository
30-
uses: actions/checkout@v6
30+
uses: actions/checkout@v7
3131
- name: Set up Graphviz
3232
run: sudo apt update && sudo apt install -y graphviz
3333
- name: Set up Python

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ repos:
1515
types: [rst]
1616
entry: python tools/fixup_gh_wiki_anchors.py
1717
language: python
18+
- id: ignore-pot-creation-date
19+
name: Ignore POT-Creation-Date
20+
entry: python tools/ignore_pot_creation_date.py
21+
language: python
22+
files: ^.*\.po$
1823
- repo: https://github.com/pre-commit/pre-commit-hooks
1924
rev: v5.0.0
2025
hooks:
2126
- id: check-byte-order-marker
2227
- id: check-case-conflict
2328
- id: end-of-file-fixer
29+
exclude: ^\.tx/config$
2430
- id: mixed-line-ending
2531
- id: trailing-whitespace
2632
exclude: ^source/locale/.*$

.tx/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,3 +1750,4 @@ minimum_perc = 0
17501750
resource_name = sphinx
17511751
replace_edited_strings = false
17521752
keep_translations = false
1753+
-63 KB
Binary file not shown.
133 KB
Loading
-63.5 KB
Loading
165 KB
Loading

0 commit comments

Comments
 (0)