Skip to content

Commit 39d1525

Browse files
after pydantic merge
1 parent 830144f commit 39d1525

218 files changed

Lines changed: 40429 additions & 39383 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: 2
22

33
updates:
4+
45
- package-ecosystem: "pip"
56
directory: "/" # folder containing pyproject.toml + poetry.lock
67
schedule:
@@ -18,3 +19,20 @@ updates:
1819
python:
1920
patterns:
2021
- "*"
22+
23+
- package-ecosystem: "github-actions"
24+
directory: "/"
25+
schedule:
26+
interval: "weekly"
27+
cooldown:
28+
# Minimum age (in days) required for any new dependency release before Dependabot will open an update PR.
29+
# Security updates are not delayed by cooldown.
30+
default-days: 7
31+
open-pull-requests-limit: 5
32+
labels:
33+
- "dependencies"
34+
- "github-actions"
35+
groups:
36+
github-actions:
37+
patterns:
38+
- "*"

.github/workflows/tidy3d-docs-sync-readthedocs-repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
synced_ref: ${{ steps.sync-result.outputs.synced_ref }}
6868
steps:
6969
- name: full-checkout
70-
uses: actions/checkout@v4
70+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
7171
with:
7272
submodules: true
7373
token: ${{ secrets.GH_PAT }}

.github/workflows/tidy3d-extras-python-client-tests-integration.yml

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}

.github/workflows/tidy3d-python-client-create-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
RELEASE_TYPE: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.release_type || inputs.release_type }}
4848
steps:
4949
- name: checkout-code
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
5151
with:
5252
fetch-depth: 1
5353
persist-credentials: true

.github/workflows/tidy3d-python-client-deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ jobs:
8585
runs-on: ubuntu-latest
8686
steps:
8787
- name: checkout-tag
88-
uses: actions/checkout@v4
88+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
8989
with:
9090
ref: ${{ needs.validate-inputs.outputs.release_tag }}
9191
persist-credentials: false
9292

9393
- name: setup-python
94-
uses: actions/setup-python@v5
94+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
9595
with:
9696
python-version: '3.10'
9797

@@ -113,7 +113,7 @@ jobs:
113113
echo "Package built successfully"
114114
115115
- name: upload-artifacts
116-
uses: actions/upload-artifact@v4
116+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
117117
with:
118118
name: dist-${{ needs.validate-inputs.outputs.release_tag }}
119119
path: dist/
@@ -126,13 +126,13 @@ jobs:
126126
runs-on: ubuntu-latest
127127
steps:
128128
- name: download-artifacts
129-
uses: actions/download-artifact@v4
129+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
130130
with:
131131
name: dist-${{ needs.validate-inputs.outputs.release_tag }}
132132
path: dist/
133133

134134
- name: setup-python
135-
uses: actions/setup-python@v5
135+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
136136
with:
137137
python-version: '3.10'
138138

@@ -165,13 +165,13 @@ jobs:
165165
runs-on: ubuntu-latest
166166
steps:
167167
- name: download-artifacts
168-
uses: actions/download-artifact@v4
168+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
169169
with:
170170
name: dist-${{ needs.validate-inputs.outputs.release_tag }}
171171
path: dist/
172172

173173
- name: setup-python
174-
uses: actions/setup-python@v5
174+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
175175
with:
176176
python-version: '3.10'
177177

.github/workflows/tidy3d-python-client-develop-cli.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ jobs:
3636
steps:
3737
- name: Checkout code (HEAD)
3838
if: ${{ !env.RELEASE_TAG }}
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
4040
with:
4141
fetch-depth: 1
4242
submodules: false
4343
persist-credentials: false
4444

4545
- name: Checkout code (TAG)
4646
if: ${{ env.RELEASE_TAG }}
47-
uses: actions/checkout@v4
47+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
4848
with:
4949
ref: refs/tags/${{ env.RELEASE_TAG }}
5050
fetch-depth: 1
5151
submodules: false
5252
persist-credentials: false
5353

5454
- name: Set up Python
55-
uses: actions/setup-python@v5
55+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
5656
with:
5757
python-version: '3.13'
5858

.github/workflows/tidy3d-python-client-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ jobs:
512512
IS_RC_RELEASE: ${{ needs.determine-workflow-scope.outputs.is_rc_release }}
513513
steps:
514514
- name: checkout-tag
515-
uses: actions/checkout@v4
515+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
516516
with:
517517
ref: ${{ env.RELEASE_TAG }}
518518
persist-credentials: false

0 commit comments

Comments
 (0)