From 8c02894164d1df4bda7dd58cd580b11ba58fcae1 Mon Sep 17 00:00:00 2001 From: Andreas Fehlner Date: Sun, 14 Jul 2024 16:13:43 +0200 Subject: [PATCH] update --- .github/workflows/release_mac.yml | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release_mac.yml b/.github/workflows/release_mac.yml index a08ac116d7d..d6378c72aac 100644 --- a/.github/workflows/release_mac.yml +++ b/.github/workflows/release_mac.yml @@ -33,7 +33,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.10'] #['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -85,7 +85,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.10'] # ['3.8', '3.9', '3.10', '3.11', '3.12'] target-architecture: ['x86_64', 'arm64'] steps: @@ -139,21 +139,21 @@ jobs: arch -${{ matrix.target-architecture }} python -m pip install --upgrade dist/*.whl arch -${{ matrix.target-architecture }} pytest - # Only triggered by weekly event on certain CI - - name: Build and upload source distribution to PyPI weekly - if: github.event_name == 'schedule' && matrix.python-version == '3.10' && matrix.target-architecture == 'arm64' - run: | - # Build and upload source distribution to PyPI - git clean -xdf - sed -i '' 's/name = "onnx"/name = "onnx-weekly"/' 'pyproject.toml' - ONNX_PREVIEW_BUILD=1 python -m build --sdist - twine upload dist/* --repository-url https://upload.pypi.org/legacy/ -u ${{ secrets.ONNXWEEKLY_USERNAME }} -p ${{ secrets.ONNXWEEKLY_TOKEN }} - - # Test weekly source distribution from PyPI - python -m pip uninstall -y onnx-weekly - python -m pip install setuptools - python -m pip install --use-deprecated=legacy-resolver --no-binary onnx-weekly onnx-weekly - pytest + # # Only triggered by weekly event on certain CI + # - name: Build and upload source distribution to PyPI weekly + # if: github.event_name == 'schedule' && matrix.python-version == '3.10' && matrix.target-architecture == 'arm64' + # run: | + # # Build and upload source distribution to PyPI + # git clean -xdf + # sed -i '' 's/name = "onnx"/name = "onnx-weekly"/' 'pyproject.toml' + # ONNX_PREVIEW_BUILD=1 python -m build --sdist + # twine upload dist/* --repository-url https://upload.pypi.org/legacy/ -u ${{ secrets.ONNXWEEKLY_USERNAME }} -p ${{ secrets.ONNXWEEKLY_TOKEN }} + + # # Test weekly source distribution from PyPI + # python -m pip uninstall -y onnx-weekly + # python -m pip install setuptools + # python -m pip install --use-deprecated=legacy-resolver --no-binary onnx-weekly onnx-weekly + # pytest - name: Verify ONNX with ONNX Runtime PyPI package if: matrix.python-version != '3.12'