Skip to content

Commit 309e4c1

Browse files
authored
Update precommit.yml
1 parent d781ebc commit 309e4c1

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

.github/workflows/precommit.yml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,35 +43,32 @@ jobs:
4343

4444
steps:
4545
- 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 }}
51-
52-
- name: Set up Python ${{ matrix.python-version }}
53-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
54-
with:
55-
python-version: ${{ matrix.python-version }}
56-
57-
- name: install python requirements
58-
run: |
59-
brew --version || true
60-
bazel --version
61-
python --version
62-
pip list
63-
sudo -H pip install distutils numpy packaging
64-
pip list
6546

6647
- name: install infrastructure (Linux)
6748
if: startsWith( matrix.cfg.os, 'ubuntu-' )
6849
run: |
6950
sudo apt-get install \
70-
python${{matrix.python-version }}-dev \
71-
python${{matrix.python-version }}-numpy \
72-
python${{matrix.python-version }}-packaging
51+
python${{ matrix.python-version }}-dev \
52+
python${{ matrix.python-version }}-numpy \
53+
python${{ matrix.python-version }}-packaging
7354
sudo ln -s /usr/lib/llvm-10/include/c++/v1 /usr/include/c++/v1
7455
56+
- name: install infrastructure (MacOS)
57+
if: startsWith( matrix.cfg.os, 'macos-' )
58+
run: |
59+
brew --version
60+
sudo brew install
61+
python@${{ matrix.python-version }} \
62+
numpy \
63+
python-packaging
64+
65+
- name: show setup
66+
run: |
67+
bazel --version
68+
python3 --version
69+
pip3 --version
70+
pip3 list
71+
7572
# - name: build-lua5.1
7673
# run: |
7774
# bazel --bazelrc=.bazelrc build --config=lua5_1 ${{ matrix.config }} //...

0 commit comments

Comments
 (0)