Skip to content

Commit e6b9cae

Browse files
authored
Update python version and os name (#645)
* Update python version and os name * Fix input version for sofa-setup-action
1 parent d52273e commit e6b9cae

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: [ubuntu-22.04, macos-14, windows-2022]
21+
os: [ubuntu-24.04, macos-15, windows-latest]
2222
sofa_branch: [master]
23-
python_version: ['3.10']
23+
python_version: ['3.12']
2424

2525
steps:
2626
- name: Setup SOFA and environment
@@ -32,19 +32,19 @@ jobs:
3232
sofa_scope: 'standard'
3333
sofa_with_sofapython3: 'false'
3434
python_version: '${{ matrix.python_version }}'
35-
35+
3636
- name: Checkout source code
3737
uses: actions/checkout@v2
3838
with:
3939
path: ${{ env.WORKSPACE_SRC_PATH }}
40-
40+
4141
- name: Setup cache for ccache files
4242
if: ${{ runner.os != 'Windows' }}
4343
uses: actions/cache@v4
4444
with:
4545
path: ${{ env.CCACHE_DIR }}
4646
key: ccache_${{ runner.os }}
47-
47+
4848
- name: Build and install
4949
id: build-install
5050
shell: bash
@@ -59,7 +59,7 @@ jobs:
5959
cmake_options="$cmake_options -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
6060
fi
6161
cmake_options="$(echo $cmake_options)" # prettify
62-
62+
6363
if [[ "$RUNNER_OS" == "Windows" ]]; then
6464
cmd //c "${{ steps.sofa.outputs.vs_vsdevcmd }} \
6565
&& cd /d $WORKSPACE_BUILD_PATH \
@@ -95,7 +95,7 @@ jobs:
9595
id: gen-stub
9696
shell: bash
9797
run: |
98-
98+
9999
#Install stubgen
100100
${{ steps.sofa.outputs.python_exe }} -m pip install mypy pybind11-stubgen
101101
@@ -114,7 +114,7 @@ jobs:
114114
run: |
115115
PROJECT_NAME="${GITHUB_REPOSITORY#*/}"
116116
echo "PROJECT_NAME=$PROJECT_NAME" | tee -a $GITHUB_ENV
117-
117+
118118
ARTIFACT_VERSION="${{ steps.sofa.outputs.run_branch }}"
119119
if [[ "${{ github.event.inputs.is_nightly }}" == "true" ]]; then
120120
ARTIFACT_VERSION="${ARTIFACT_VERSION}-nightly"
@@ -135,12 +135,12 @@ jobs:
135135
with:
136136
name: ${{ env.ARTIFACT_NAME }}
137137
path: ${{ env.WORKSPACE_ARTIFACT_PATH }}
138-
138+
139139
- name: Pepare python environement for tests
140140
shell: bash
141141
run: |
142142
${{ steps.sofa.outputs.python_exe }} -m pip install rpyc matplotlib
143-
143+
144144
echo "PYTHONPATH=${{ env.WORKSPACE_BUILD_PATH }}/lib/python3/site-packages" | tee -a $GITHUB_ENV
145145
146146
@@ -158,7 +158,7 @@ jobs:
158158

159159
- name: Notify dashboard
160160
if: always() && startsWith(github.repository, 'sofa-framework') && startsWith(github.ref, 'refs/heads/master') # we are not on a fork and on master
161-
env:
161+
env:
162162
DASH_AUTH: ${{ secrets.PLUGIN_DASH }}
163163
shell: bash
164164
run: |
@@ -174,7 +174,7 @@ jobs:
174174
echo 'true' || echo 'false')
175175
176176
os=$(echo "${{ matrix.os }}" | awk -F- '{ print $1 }')
177-
177+
178178
179179
curl -X POST -H "X-API-KEY: $DASH_AUTH" -H "Content-Type: application/json" -d \
180180
"{\"id\":\"$(echo "${{ github.repository }}" | awk -F/ '{ print $2 }')\",\
@@ -207,7 +207,7 @@ jobs:
207207
done
208208
PROJECT_NAME="${GITHUB_REPOSITORY#*/}"
209209
echo "PROJECT_NAME=$PROJECT_NAME" | tee -a $GITHUB_ENV
210-
210+
211211
RELEASE_NAME="${{ github.ref_name }}"
212212
RELEASE_TAGNAME="release-${{ github.ref_name }}"
213213
BRANCH_NAME="$RELEASE_NAME"

0 commit comments

Comments
 (0)