@@ -75,23 +75,23 @@ jobs:
7575 steps :
7676 - name : checkout-head
7777 if : ${{ !env.RELEASE_TAG }}
78- uses : actions/checkout@v4
78+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
7979 with :
8080 fetch-depth : 1
8181 submodules : false
8282 persist-credentials : false
8383
8484 - name : checkout-tag
8585 if : ${{ env.RELEASE_TAG }}
86- uses : actions/checkout@v4
86+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
8787 with :
8888 ref : refs/tags/${{ env.RELEASE_TAG }}
8989 fetch-depth : 1
9090 submodules : false
9191 persist-credentials : false
9292
9393 - name : set-python-${{ matrix.python-version }}
94- uses : actions/setup-python@v4
94+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
9595 with :
9696 python-version : ${{ matrix.python-version }}
9797
@@ -123,20 +123,30 @@ jobs:
123123 poetry config http-basic.codeartifact aws $CODEARTIFACT_AUTH_TOKEN
124124 echo "✅ CodeArtifact authentication configured"
125125
126+ - name : update-tidy3d-extras-lockfile
127+ run : |
128+ set -e
129+ echo "Updating tidy3d-extras in poetry.lock..."
130+ poetry update tidy3d-extras --lock
131+ echo "✅ tidy3d-extras updated in lockfile"
132+
126133 - name : install-project
127134 shell : bash
128135 run : |
129136 poetry --version
130137 python --version
131- python -m venv .venv
138+ rm -rf .venv
132139 if [[ "${{ runner.os }}" == "Windows" ]]; then
140+ python -m venv .venv
133141 source .venv/Scripts/activate
134- python --version
135142 else
143+ echo "DEBUG: pythonLocation=$pythonLocation"
144+ "$pythonLocation/bin/python" -m venv .venv
136145 source .venv/bin/activate
137- which python
146+ echo "DEBUG: .venv/bin/python --version = $(.venv/bin/python --version)"
147+ ls -la .venv/bin/python*
138148 fi
139- poetry env use python
149+ poetry config virtualenvs.create false --local
140150 poetry env info
141151 poetry run pip install --upgrade pip wheel setuptools
142152 poetry run pip install gdstk --only-binary gdstk
@@ -212,23 +222,23 @@ jobs:
212222 steps :
213223 - name : checkout-head
214224 if : ${{ !env.RELEASE_TAG }}
215- uses : actions/checkout@v4
225+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
216226 with :
217227 fetch-depth : 1
218228 submodules : false
219229 persist-credentials : false
220230
221231 - name : checkout-tag
222232 if : ${{ env.RELEASE_TAG }}
223- uses : actions/checkout@v4
233+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
224234 with :
225235 ref : refs/tags/${{ env.RELEASE_TAG }}
226236 fetch-depth : 1
227237 submodules : false
228238 persist-credentials : false
229239
230240 - name : set-python-${{ matrix.python-version }}
231- uses : actions/setup-python@v4
241+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
232242 with :
233243 python-version : ${{ matrix.python-version }}
234244
@@ -260,25 +270,35 @@ jobs:
260270 poetry config http-basic.codeartifact aws $CODEARTIFACT_AUTH_TOKEN
261271 echo "✅ CodeArtifact authentication configured"
262272
273+ - name : update-tidy3d-extras-lockfile
274+ run : |
275+ set -e
276+ echo "Updating tidy3d-extras in poetry.lock..."
277+ poetry update tidy3d-extras --lock
278+ echo "✅ tidy3d-extras updated in lockfile"
279+
263280 - name : install-project
264281 shell : bash
265282 run : |
266283 poetry --version
267284 python --version
268- python -m venv .venv
285+ rm -rf .venv
269286 if [[ "${{ runner.os }}" == "Windows" ]]; then
287+ python -m venv .venv
270288 source .venv/Scripts/activate
271- python --version
272289 else
290+ echo "DEBUG: pythonLocation=$pythonLocation"
291+ "$pythonLocation/bin/python" -m venv .venv
273292 source .venv/bin/activate
274- which python
293+ echo "DEBUG: .venv/bin/python --version = $(.venv/bin/python --version)"
294+ ls -la .venv/bin/python*
275295 fi
276- poetry env use python
296+ poetry config virtualenvs.create false --local
277297 poetry env info
278298 poetry run pip install --upgrade pip wheel setuptools
279299 poetry run pip install gdstk --only-binary gdstk
280300 poetry install -E extras -E dev
281-
301+
282302 - name : verify-extras-installation
283303 run : |
284304 export SIMCLOUD_APIKEY=${{ secrets.TIDY3D_API_KEY }}
0 commit comments