From 92cd2b27febacd047b21430f43cc804cfd37a667 Mon Sep 17 00:00:00 2001 From: Ilyas Moutawwakil <57442720+IlyasMoutawwakil@users.noreply.github.com> Date: Fri, 24 Jan 2025 18:55:05 +0100 Subject: [PATCH] Remove release workflow (#312) --- .github/workflows/release.yaml | 59 ---------------------------------- optimum_benchmark/version.py | 1 + 2 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 6b377207..00000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,59 +0,0 @@ -name: PYPI Release - -on: - workflow_dispatch: - -concurrency: - cancel-in-progress: true - group: ${{ github.workflow }}-${{ github.ref }} - -jobs: - release: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Python 3.10 - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - - name: Install requirements - run: | - pip install --upgrade pip - pip install setuptools wheel twine - - - name: Build - run: | - python setup.py sdist bdist_wheel - - - name: Check - run: | - twine check dist/* - - - name: Assert one wheel - run: | - WHEELS=$(ls dist/*.whl) - if [ $(echo "$WHEELS" | wc -l) -ne 1 ]; then - echo "Expected one wheel, got:" - echo "$WHEELS" - exit 1 - fi - - - name: Install the wheel - run: | - pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu - pip install dist/*.whl - - - name: Test - run: | - optimum-benchmark --config-dir examples --config-name pytorch_bert backend.device=cpu launcher.device_isolation=false - - - name: Publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: | - twine upload --repository pypi dist/* diff --git a/optimum_benchmark/version.py b/optimum_benchmark/version.py index 985ebb7e..a480c188 100644 --- a/optimum_benchmark/version.py +++ b/optimum_benchmark/version.py @@ -12,4 +12,5 @@ # See the License for the specific language governing permissions and # limitations under the License. + __version__ = "0.6.0.dev0"