Skip to content

Commit

Permalink
Merge pull request #26 from siliconcompiler/python13
Browse files Browse the repository at this point in the history
add python3.13 support
  • Loading branch information
gadfort authored Aug 26, 2024
2 parents 92cdbba + f2fe48f commit 6a56e97
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
# Manual Dispatch
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint_python:
name: Lint Python Code
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
workflow_dispatch:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
python_test_job:
timeout-minutes: 15
Expand All @@ -18,6 +22,7 @@ jobs:
- {python: "3.10", os: "ubuntu-latest"}
- {python: "3.11", os: "ubuntu-latest"}
- {python: "3.12", os: "ubuntu-latest"}
- {python: "3.13", os: "ubuntu-latest"}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -34,6 +39,7 @@ jobs:
with:
python-version: ${{ matrix.version.python }}
cache: pip
allow-prereleases: true

- name: Run Python tests
run: |
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
types:
- published

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

# Ensures wheels are compatible with macOS 10.15+
env:
MACOSX_DEPLOYMENT_TARGET: "10.15"
Expand All @@ -18,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [cp38, cp39, cp310, cp311, cp312]
python-version: [cp38, cp39, cp310, cp311, cp312, cp313]
platform:
- os: ubuntu-latest
arch: x86_64
Expand Down Expand Up @@ -96,6 +100,7 @@ jobs:

permissions:
contents: write
id-token: write

steps:
- uses: actions/download-artifact@v4
Expand All @@ -105,9 +110,6 @@ jobs:
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPI_DEPLOY }}

- name: Add wheels to GitHub release artifacts
uses: softprops/action-gh-release@v2
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
pytest == 6.2.4
pytest-timeout == 2.1.0
flake8 == 7.0.0
lambdapdk == 0.1.23
siliconcompiler >= 0.23.2
13 changes: 0 additions & 13 deletions tests/test_leflib.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
import os
from lambdapdk import sky130
import sc_leflib
from siliconcompiler import Chip
import pytest


@pytest.mark.timeout(300)
def test_leflib(scroot):
chip = Chip('test')
chip.use(sky130)
path = chip.find_files('pdk', 'skywater130', 'aprtech', 'openroad', '5M1LI', 'hd', 'lef')[0]

data = sc_leflib.parse(path)
assert data['version'] == 5.7


def test_leflib_garbage():
Expand Down

0 comments on commit 6a56e97

Please sign in to comment.