Skip to content

Commit

Permalink
switch default to release and disable pushing to pypi for now (#175)
Browse files Browse the repository at this point in the history
Co-authored-by: dhuangnm <dhuang@MacBook-Pro-2.local>
  • Loading branch information
dhuangnm and dhuangnm authored Sep 30, 2024
1 parent 7351fdb commit 672551d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
wf_category:
description: "workflow category: NIGHTLY, RELEASE"
type: string
default: NIGHTLY
default: RELEASE
push_to_pypi:
description: "When set to true, built whl and tar.gz will be pushed to public pypi if all tests pass"
type: boolean
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/trigger-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ on:
workflow_dispatch:
inputs:
wf_category:
description: "workflow category, default is NIGHTLY"
description: "workflow category, default is RELEASE"
type: choice
options:
- NIGHTLY
- RELEASE
default: NIGHTLY
default: RELEASE
push_to_pypi:
description: "when set and tests pass, then '.whl' & '.tar.gz' will be pushed to public pypi"
type: boolean
default: true
default: false
gitref:
description: "git commit hash or tag name"
type: string
Expand All @@ -27,11 +27,11 @@ jobs:

BUILD-TEST:
uses: ./.github/workflows/build-test.yml
name: ${{ inputs.wf_category || 'NIGHTLY' }}
name: ${{ inputs.wf_category || 'RELEASE' }}
with:
wf_category: ${{ inputs.wf_category || 'NIGHTLY' }}
wf_category: ${{ inputs.wf_category || 'RELEASE' }}
gitref: ${{ inputs.gitref || 'main' }}
push_to_pypi: ${{ inputs.push_to_pypi || true }}
push_to_pypi: ${{ inputs.push_to_pypi || false }}
test_configs: '[{"python":"3.11.4","label":"ubuntu-22.04","timeout":"40"},
{"python":"3.10.12","label":"ubuntu-20.04","timeout":"40"},
{"python":"3.9.17","label":"k8s-a100-solo","timeout":"40"},
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
asset_identifier: 'compressed*.whl'

- name: upload whl to "nm-pypi"
if: ${{ inputs.push_to_pypi }}
uses: neuralmagic/nm-actions/actions/gcp-upload-asset@v1.1.0
with:
bucket_target: ${{ secrets.GCP_NM_PYPI_DIST }}
Expand All @@ -130,6 +131,7 @@ jobs:
asset_identifier: 'compressed*.tar.gz'

- name: upload tar.gz to "nm-pypi"
if: ${{ inputs.push_to_pypi }}
uses: neuralmagic/nm-actions/actions/gcp-upload-asset@v1.1.0
with:
bucket_target: ${{ secrets.GCP_NM_PYPI_DIST }}
Expand Down
2 changes: 1 addition & 1 deletion src/compressed_tensors/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


version_base = "0.6.0"
is_release = False # change to True to set the generated version as a release version
is_release = True # change to True to set the generated version as a release version


def _generate_version(
Expand Down

0 comments on commit 672551d

Please sign in to comment.