Skip to content

Commit 58b44d4

Browse files
authored
Fix python package CI (#175)
1 parent c2c6808 commit 58b44d4

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,27 @@ runs:
2626
brew install libomp
2727
echo "OpenMP_ROOT=$(brew --prefix)/opt/libomp" >> $GITHUB_ENV
2828
29-
- name: 🐍 Install Python
29+
- name: Install Git LFS and configure (Windows)
30+
if: ${{ inputs.os == 'windows-latest' }}
31+
shell: bash
32+
run: |
33+
git lfs version || choco install git-lfs -y
34+
git lfs install --system
35+
git config --global core.autocrlf false
36+
echo "GIT_LFS_SKIP_SMUDGE=1" >> "$GITHUB_ENV"
37+
echo "CMAKE_GIT_COMMAND=$(which git)" >> "$GITHUB_ENV"
38+
39+
- name: Install Git LFS and configure (macOS)
40+
if: ${{ inputs.os == 'macos-latest' }}
41+
shell: bash
42+
run: |
43+
brew install git-lfs || true
44+
sudo git lfs install --system
45+
git config --global core.autocrlf false
46+
echo "GIT_LFS_SKIP_SMUDGE=1" >> "$GITHUB_ENV"
47+
echo "CMAKE_GIT_COMMAND=$(which git)" >> "$GITHUB_ENV"
48+
49+
- name: 🐍 Install Python (windows)
3050
if: ${{ inputs.os == 'windows-latest' }}
3151
uses: actions/setup-python@v5
3252
with:

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
path: venv
8383

8484
package:
85-
if: ${{ github.event_name == 'release' || github.event.inputs.publish == 'true' }}
85+
if: ${{ github.event_name == 'release' || github.event.inputs.publish == 'true' || github.event_name == 'workflow_dispatch' }}
8686
strategy:
8787
fail-fast: false
8888

0 commit comments

Comments
 (0)