@@ -14,7 +14,7 @@ concurrency:
1414 cancel-in-progress : true
1515
1616env :
17- PYTHON_VERSION : ' 3.12 '
17+ PYTHON_VERSION : ' 3.14 '
1818 NODE_VERSION : lts/*
1919
2020permissions :
4747 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
4848 with :
4949 python-version : ${{ env.PYTHON_VERSION }}
50+ allow-prereleases : true
5051 - name : Environment Information
5152 run : npx envinfo
5253 - name : Lint C/C++ files
6768 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
6869 with :
6970 python-version : ${{ env.PYTHON_VERSION }}
71+ allow-prereleases : true
7072 - name : Environment Information
7173 run : npx envinfo
7274 - name : Format C/C++ files
@@ -138,6 +140,22 @@ jobs:
138140 NODE=$(command -v node) make lint-md
139141 env :
140142 NODE_RELEASED_VERSIONS : ${{ steps.get-released-versions.outputs.NODE_RELEASED_VERSIONS }}
143+ lint-nix :
144+ if : github.event.pull_request.draft == false
145+ runs-on : ubuntu-latest
146+ steps :
147+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
148+ with :
149+ persist-credentials : false
150+ sparse-checkout : ' *.nix'
151+ sparse-checkout-cone-mode : false
152+ - uses : cachix/install-nix-action@7be5dee1421f63d07e71ce6e0a9f8a4b07c2a487 # v31.6.1
153+ - name : Lint Nix files
154+ run : |
155+ nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run '
156+ treefmt --quiet --fail-on-change
157+ ' || git --no-pager diff --exit-code
158+
141159 lint-py :
142160 if : github.event.pull_request.draft == false
143161 runs-on : ubuntu-latest
@@ -149,6 +167,7 @@ jobs:
149167 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
150168 with :
151169 python-version : ${{ env.PYTHON_VERSION }}
170+ allow-prereleases : true
152171 - name : Environment Information
153172 run : npx envinfo
154173 - name : Lint Python
@@ -166,6 +185,7 @@ jobs:
166185 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
167186 with :
168187 python-version : ${{ env.PYTHON_VERSION }}
188+ allow-prereleases : true
169189 - name : Environment Information
170190 run : npx envinfo
171191 - name : Lint YAML
0 commit comments