Skip to content

Commit 745d8c4

Browse files
authored
Update precommit.yml
1 parent 6f83750 commit 745d8c4

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/precommit.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28+
bazel_version:
29+
- '6.3.0'
30+
python_version:
31+
- '3.10'
2832
include:
2933
- { name: 'Linux GCC', os: 'ubuntu-22.04', cc: gcc-12, cxx: g++-12, config: }
3034
- { name: 'Linux LLVM+libstdc++', os: 'ubuntu-22.04', cc: clang, cxx: clang++, config: --linkopt=-fuse-ld=lld }
@@ -35,11 +39,15 @@ jobs:
3539
env:
3640
CC: ${{ matrix.cc }}
3741
CXX: ${{ matrix.cxx }}
38-
USE_BAZEL_VERSION: '6.3.0'
39-
PYTHON_VERSION: '3.10'
42+
USE_BAZEL_VERSION: ${{ matrix.bazel_version }}
4043

4144
steps:
4245
- uses: actions/checkout@v3
46+
47+
- name: Set up Python ${{ matrix.python-version }}
48+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
49+
with:
50+
python-version: ${{ matrix.python_version }}
4351

4452
- name: install infrastructure (Linux)
4553
if: startsWith( matrix.os, 'ubuntu-' )
@@ -51,10 +59,11 @@ jobs:
5159
if: startsWith( matrix.os, 'macos-' )
5260
run: sudo -H pip3 install numpy packaging
5361

54-
- name: show bazel setup
62+
- name: show setup
5563
run: |
5664
bazel --version
57-
python3 --version
65+
python --version
66+
pip list
5867
5968
# - name: build-lua5.1
6069
# run: |

0 commit comments

Comments
 (0)