Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-5047

Improve testing of publish workflows

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.12, 4.11.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      We should add a step to publish to test-pypi that always runs, and set up the workflow to run nightly as a dry-run so we can see its current status before attempting a release.

            - name: Publish package distributions to TestPyPI
              uses: pypa/gh-action-pypi-publish@release/v1
              with:
                repository-url: https://test.pypi.org/legacy/
                skip-existing: true
      
        schedule:
          - cron:  '30 5 * * *'
      ...
      
      env:
         # Constants
        VERSION: ${{ inputs.version || '100.10.0.dev0' }}
        FOLLOWING_VERSION: ${{ inputs.following_version || '' }}
        DRY_RUN: ${{ inputs.dry_run || 'false' }}
      

      Definition of done

      Update release-python workflows.

      Pitfalls

      None

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None