Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflows and Python 3.12 #1630

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build-and-publish-tagged-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ jobs:
- name: Set up Docker Buildx
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to Github Packages
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout code
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -45,7 +45,7 @@ jobs:

- name: Build and push deepsparse latest with all dependencies
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: ./docker
build-args: |
Expand All @@ -57,7 +57,7 @@ jobs:

- name: Build and push deepsparse with all dependencies
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: ./docker
build-args: |
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Build and push deepsparse-base
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: ./docker
build-args: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/local-install-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ env:

jobs:
local-install-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
repository: "neuralmagic/sparsezoo"
path: "sparsezoo"
- name: "⚙️ Install sparsezoo dependencies"
run: pip install sparsezoo/
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: "⚙️ Install local deepsparse"
run: pip3 install .
- name: "deepsparse.benchmark"
run: deepsparse.benchmark zoo:cv/classification/mobilenet_v1-1.0/pytorch/sparseml/imagenet/pruned_quant-moderate -w 1 -t 1
local-develop-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: "neuralmagic/sparsezoo"
path: "sparsezoo"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-nightly-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ jobs:
steps:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to Github Packages
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -43,7 +43,7 @@ jobs:
echo ${{ steps.extract_tag.outputs.tag }}

- name: DeepSparse-Nightly latest
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: ./docker
build-args: |
Expand All @@ -54,7 +54,7 @@ jobs:
ghcr.io/neuralmagic/deepsparse-nightly:latest

- name: Today's DeepSparse-Nightly
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: ./docker
build-args: |
Expand All @@ -65,7 +65,7 @@ jobs:
ghcr.io/neuralmagic/deepsparse-nightly:${{ steps.extract_tag.outputs.tag }}

- name: Today's DeepSparse-Nightly Base
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: ./docker
build-args: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/quality-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
quality-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: "neuralmagic/sparsezoo"
path: "sparsezoo"
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/test-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.11']
os: [ubuntu-20.04]
python-version: ['3.8', '3.9', '3.11', '3.12']
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: "neuralmagic/sparsezoo"
path: "sparsezoo"
Expand All @@ -52,16 +52,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.11']
os: [ubuntu-20.04]
python-version: ['3.8', '3.9', '3.11', '3.12']
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: "neuralmagic/sparsezoo"
path: "sparsezoo"
Expand All @@ -78,16 +78,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.10']
os: [ubuntu-20.04]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: "neuralmagic/sparsezoo"
path: "sparsezoo"
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _parse_requirements_file(file_path):

_deps = [
"numpy>=1.16.3",
"onnx>=1.5.0,<1.15.0",
"onnx>=1.5.0,<1.17.0",
"pydantic>=1.8.2,<2.0.0",
"requests>=2.0.0",
"tqdm>=4.0.0",
Expand Down Expand Up @@ -200,7 +200,7 @@ def _check_supported_system():

def _check_supported_python_version():
supported_major = 3
supported_minor = [8, 9, 10, 11]
supported_minor = [8, 9, 10, 11, 12]

if (
sys.version_info[0] != supported_major
Expand Down Expand Up @@ -344,7 +344,7 @@ def _setup_long_description() -> Tuple[str, str]:
install_requires=_setup_install_requires(),
extras_require=_setup_extras(),
entry_points=_setup_entry_points(),
python_requires=">=3.8, <3.12",
python_requires=">=3.8, <3.13",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
Expand All @@ -353,6 +353,7 @@ def _setup_long_description() -> Tuple[str, str]:
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
Expand Down