-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from gdsfactory/update_gdsfactory716
Update gdsfactory716
- Loading branch information
Showing
913 changed files
with
4,403 additions
and
36,767 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name-template: 'v$RESOLVED_VERSION' | ||
tag-template: 'v$RESOLVED_VERSION' | ||
change-template: '- $TITLE [#$NUMBER](https://github.com/gdsfactory/skywater130/pull/$NUMBER)' | ||
template: | | ||
# What's Changed | ||
$CHANGES | ||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION | ||
categories: | ||
- title: 'Breaking' | ||
label: 'breaking' | ||
- title: 'New' | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: 'Bug Fixes' | ||
label: 'bug' | ||
- title: 'Maintenance' | ||
labels: | ||
- 'maintenance' | ||
- 'github_actions' | ||
- title: 'Documentation' | ||
label: 'documentation' | ||
- title: 'Other changes' | ||
- title: 'Dependency Updates' | ||
label: 'dependencies' | ||
collapse-after: 5 | ||
|
||
version-resolver: | ||
major: | ||
labels: | ||
- 'breaking' | ||
- 'major' | ||
minor: | ||
labels: | ||
- 'feature' | ||
- 'minor' | ||
- 'enhancement' | ||
patch: | ||
labels: | ||
- 'bug' | ||
- 'maintenance' | ||
- 'github_actions' | ||
- 'documentation' | ||
- 'dependencies' | ||
- 'security' | ||
default: patch | ||
|
||
exclude-labels: | ||
- 'skip-changelog' | ||
|
||
autolabeler: | ||
- label: 'documentation' | ||
files: | ||
- '*.md' | ||
branch: | ||
- '/docs-.+/' | ||
- label: 'bug' | ||
branch: | ||
- '/fix-.+/' | ||
title: | ||
- '/fix/i' | ||
- label: 'enhancement' | ||
branch: | ||
- '/feature-.+/' | ||
- '/add-.+/' | ||
title: | ||
- '/^add\s/i' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: Sphinx docs to gh-pages | ||
name: build docs | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
@@ -10,29 +11,20 @@ jobs: | |
build-docs: | ||
runs-on: ubuntu-latest | ||
name: Sphinx docs to gh-pages | ||
container: ghcr.io/gdsfactory/gdsfactory:main | ||
steps: | ||
- name: Cancel Workflow Action | ||
uses: styfle/[email protected] | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gdsfactory/ | ||
key: 0.0.1 | ||
restore-keys: 0.0.1 | ||
- uses: actions/checkout@v4 | ||
- name: Installing the library | ||
env: | ||
GDSFACTORY_DISPLAY_TYPE: klayout | ||
KFACTORY_DISPLAY_TYPE: image | ||
shell: bash -l {0} | ||
run: | | ||
make dev | ||
make install | ||
- name: make docs | ||
run: | | ||
make docs | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: "./docs/_build/html/" | ||
|
||
deploy-docs: | ||
needs: build-docs | ||
permissions: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update_release_draft: | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
# write permission is required for autolabeler | ||
# otherwise, read permission is required at least | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
# (Optional) GitHub Enterprise requires GHE_HOST variable set | ||
#- name: Set GHE_HOST | ||
# run: | | ||
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV | ||
|
||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v6 | ||
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml | ||
# with: | ||
# config-name: my-config.yml | ||
# disable-autolabeler: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test pre-commit, code and docs | ||
name: Test code | ||
|
||
on: | ||
pull_request: | ||
|
@@ -10,61 +10,25 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: pre-commit/[email protected] | ||
test_code: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
max-parallel: 12 | ||
matrix: | ||
python-version: ["3.11"] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: "3.10" | ||
cache: "pip" | ||
cache-dependency-path: pyproject.toml | ||
- name: Install dependencies | ||
- name: Test pre-commit hooks | ||
run: | | ||
make dev | ||
- name: Test with pytest | ||
run: pytest tests/ | ||
test_docs: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
max-parallel: 12 | ||
matrix: | ||
python-version: [3.11] | ||
os: [ubuntu-latest] | ||
|
||
python -m pip install --upgrade pip | ||
pip install pre-commit | ||
pre-commit run -a | ||
test_code: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/gdsfactory/gdsfactory:main | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
cache: "pip" | ||
cache-dependency-path: pyproject.toml | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: | | ||
make dev | ||
pip freeze > requirements.txt | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: requirements | ||
path: requirements.txt | ||
- name: Test documentation | ||
env: | ||
TIDY3D_USER: ${{ secrets.TIDY3D_EMAIL }} | ||
TIDY3D_PASS: ${{ secrets.TIDY3D_PASSWORD }} | ||
DISPLAY: 1.0 | ||
DOCS: True | ||
GDSFACTORY_DISPLAY_TYPE: klayout | ||
run: | | ||
mkdir -p $HOME/.tidy3d | ||
make docs | ||
make install | ||
- name: Test with pytest | ||
run: pytest tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
install: | ||
pip install -e .[dev,docs] | ||
pre-commit install | ||
|
||
dev: install | ||
pre-commit install | ||
|
||
test: | ||
pytest -s | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.