message: only submit source distribution in one CI
diff: @@ -107,17 +107,16 @@ jobs:
  python -m pip install -q onnxruntime
  python onnx/test/test_with_ort.py
  + # Only triggered by weekly event on certain CI
  - name: Build and upload source distribution to TestPyPI weekly
  - if: github.event_name == 'schedule' && matrix.python-version == '3.10' # Only triggered by weekly event on Python 3.10
  + if: github.event_name == 'schedule' && matrix.python-version == '3.10' && matrix.target-architecture == 'x86_64'
  run: |
  # Build and upload source distribution to TestPyPI
  git clean -xdf
  python setup.py sdist --weekly_build
  twine upload dist/* --repository-url https://test.pypi.org/legacy/ -u ${{ secrets.TESTPYPI_USERNAME }} -p ${{ secrets.TESTPYPI_PASSWORD }}
  - - name: Test source distribution from TestPyPI
  - if: github.event_name == 'schedule' && matrix.python-version == '3.10'
  - run: |
  + # Test source distribution from TestPyPI
  python -m pip uninstall -y onnx
  python -m pip install setuptools
  python -m pip install --index-url https://test.pypi.org/simple --use-deprecated=legacy-resolver --no-use-pep517 --no-binary onnx-weekly onnx-weekly
  