Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/tidy3d-docs-sync-readthedocs-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
- 'v*'
- 'demo/*'

permissions:
contents: read

jobs:
extract_branch_or_tag:
outputs:
Expand Down Expand Up @@ -46,6 +49,7 @@ jobs:
fetch-depth: 0
ref: ${{ needs.extract_branch_or_tag.outputs.ref_name }}
fetch-tags: true
persist-credentials: false

- name: push-mirror-repo
env:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/tidy3d-python-client-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ on:
- cron: '0 5 * * *' # Runs at 5am UTC

permissions:
contents: write
pull-requests: write
contents: read

jobs:
update-lockfile:
uses: ./.github/workflows/tidy3d-python-client-update-lockfile.yml
permissions:
contents: write
pull-requests: write
with:
run-workflow: true
secrets: inherit
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

submodule-tests:
uses: ./.github/workflows/tidy3d-python-client-submodules-test.yml
with:
run-workflow: true
secrets: inherit
6 changes: 5 additions & 1 deletion .github/workflows/tidy3d-python-client-develop-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- develop
- latest

permissions:
contents: read

jobs:
test-dev-commands:
strategy:
Expand All @@ -23,6 +26,7 @@ jobs:
ref: develop
fetch-depth: 1
submodules: false
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -58,7 +62,7 @@ jobs:
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
with:
version: 1.8.2
virtualenvs-create: true
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/tidy3d-python-client-release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "public/tidy3d/python-client-release"

permissions:
contents: write

on:
push:
tags:
- 'v*.*.*'

permissions:
contents: read

jobs:
test-latest-submodules:
runs-on: ubuntu-latest
Expand All @@ -19,6 +19,7 @@ jobs:
submodules: 'recursive'
# This fetches only a single branch by default, so additional fetch is needed
fetch-depth: 0 # Optionally, set to 0 to fetch all history for all branches and tags
persist-credentials: false

- name: Initialize and update submodule
run: |
Expand Down Expand Up @@ -74,20 +75,23 @@ jobs:

github-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
persist-credentials: false
- name: Exit if any RC release
if: contains(github.ref, 'rc') == false
uses: everlytic/branch-merge@1.1.2
uses: everlytic/branch-merge@c4a244dc23143f824ae6c022a10732566cb8e973 # v1.1.5
with:
github_token: ${{ secrets.GH_PAT }}
source_ref: ${{ github.ref }}
target_branch: "latest"
commit_message_template: ':tada: RELEASE: Merged {source_ref} into target {target_branch}'
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@aec2ec56f94eb8180ceec724245f64ef008b89f5 # v2.4.0
with:
generate_release_notes: true
env:
Expand All @@ -98,6 +102,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
persist-credentials: false
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
Expand All @@ -107,18 +112,19 @@ jobs:
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
run: | # zizmor: ignore[use-trusted-publishing]
python -m build
python -m twine upload --repository pypi dist/*
python -m twine upload --repository pypi dist/*
sync_to_develop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: "latest"
persist-credentials: false
- name: Exit if any RC release
if: contains(github.ref, 'rc') == false
uses: everlytic/branch-merge@1.1.2
uses: everlytic/branch-merge@c4a244dc23143f824ae6c022a10732566cb8e973 # v1.1.5
with:
github_token: ${{ secrets.GH_PAT }}
source_ref: "latest"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tidy3d-python-client-submodules-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
type: boolean
default: true

permissions:
contents: read

jobs:
test-latest-submodules:
runs-on: ubuntu-latest
Expand All @@ -33,6 +36,7 @@ jobs:
submodules: 'recursive'
# This fetches only a single branch by default, so additional fetch is needed
fetch-depth: 0 # Optionally, set to 0 to fetch all history for all branches and tags
persist-credentials: false

- name: Initialize and update submodule
run: |
Expand Down
Loading