Skip to content

Commit

Permalink
⬆️ Begin updating to more recent depedencies
Browse files Browse the repository at this point in the history
  • Loading branch information
daquintero committed Jun 5, 2024
1 parent 2bb9df3 commit a6af9b2
Show file tree
Hide file tree
Showing 152 changed files with 2,777 additions and 7,575 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "piel-tests"

on:
workflow_dispatch:
push:
branches: [ develop ]
pull_request:
branches:
- develop

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
submodules: 'recursive'
- name: Test pre-commit hooks
run: |
python -m pip install --upgrade pip
pip install pre-commit
pre-commit run # this should be really more agressive
build:
name: test ${{ matrix.python-version }} - ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
platform: [ubuntu-latest]
defaults:
run:
shell: bash
env: # Set environment variables for the whole job
PIP_ONLY_BINARY: gdstk
MPLBACKEND: agg
steps:
- uses: actions/checkout@v4

#----------------------------------------------
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.2
virtualenvs-create: true
virtualenvs-in-project: true

#----------------------------------------------
# install your root project, if required
#----------------------------------------------
- name: Install library
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
poetry --version
poetry install -E dev
#----------------------------------------------
# add matrix specifics and run test suite
#----------------------------------------------
- name: Run tests
run: |
# poetry run black . --check --diff
# poetry run ruff check piel --fix --exit-non-zero-on-fix
poetry run pytest -rA tests
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
- tomli

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "7c149cf0b9d2c4f7558de1ea5d2c137ca074d9d0"
rev: v0.4.4
hooks:
- id: ruff

Expand Down
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions docs/examples/00_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

piel.__version__

piel.develop.configure_development_environment()

# ## Example Setup

# We will start by first setting up the design folder. You can get your own design folder, or you can use the `docs/examples/simple_design` folder as a reference for our project. In the future, you might want to have your project as a git clonable repository you can just add to a designs folder. You can also use the example OpenLanes ones.
Expand Down Expand Up @@ -75,6 +77,7 @@
example_name="simple_design",
target_directory="designs/",
target_project_name="simple_copied_design",
delete=True, # TODO update for more robust tests
)

# ### Create an empty `piel` project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,3 @@ def parallel_implementations(amount_of_implementations: int):
# Sequential
# 106.13592076301575
# ```



Loading

0 comments on commit a6af9b2

Please sign in to comment.