diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4b02737..3bf7b07 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,12 +8,12 @@ on: branches: [master] env: - python_version: 3.8.2 + python_version: 3.11.12 jobs: check-version: name: ๐Ÿ” Check version - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 outputs: version: ${{ steps.retrieve-version.outputs.version }} steps: @@ -31,7 +31,7 @@ jobs: run-tests: name: ๐Ÿงช Run tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: ๐Ÿ™ Checkout repository uses: actions/checkout@v3 @@ -63,7 +63,7 @@ jobs: name: ๐ŸŽ‰ Create release needs: [check-version, run-tests] if: github.event_name == 'push' - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 permissions: contents: write steps: @@ -77,32 +77,29 @@ jobs: name: ๐Ÿ”” Send notifications needs: [check-version, run-tests, create-release] if: github.event_name == 'push' && always() - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: ๐Ÿ“ Retrieve workflow result id: retrieve-workflow-result run: | - if [ ${{ needs.check-version.result }} = 'success' ] \ - && [ ${{ needs.run-tests.result }} = 'success' ] \ - && [ ${{ needs.create-release.result }} = 'success' ] - then - echo "::set-output name=result::success" - echo "::set-output name=message::succeeded" - elif [ ${{ needs.check-version.result }} = 'cancelled' ] \ - || [ ${{ needs.run-tests.result }} = 'cancelled' ] \ - || [ ${{ needs.create-release.result }} = 'cancelled' ] - then - echo "::set-output name=result::cancelled" - echo "::set-output name=message::canceled" - else - echo "::set-output name=result::failure" - echo "::set-output name=message::failed" - fi - - - name: ๐Ÿ“ Retrieve origin url message - id: retrieve-origin-url-message - run: | - echo "::set-output name=message::" + case "${{ inputs.job-status }}" in + success) + action='Published' + ;; + failure) + action='Failed to publish' + ;; + cancelled) + action='Cancelled publishing' + ;; + *) + echo "::error::Unknown job status: `$JOB_STATUS`" + exit 1 + ;; + esac + version="" + repository="" + echo "message=$action $version from $repository" >> $GITHUB_OUTPUT - name: ๐Ÿ”” Send Slack notification uses: rtCamp/action-slack-notify@v2 diff --git a/panoply/constants.py b/panoply/constants.py index a54d744..e5b2905 100644 --- a/panoply/constants.py +++ b/panoply/constants.py @@ -1,2 +1,2 @@ -__version__ = "3.2.0" +__version__ = "3.2.1" __package_name__ = "panoply-python-sdk" diff --git a/setup.py b/setup.py index 194d62c..f890c08 100644 --- a/setup.py +++ b/setup.py @@ -17,12 +17,11 @@ version=__version__, packages=["panoply", "panoply.errors"], install_requires=[ - "requests==2.21.0", + "requests==2.32.3", "oauth2client==4.1.1", "backoff==1.10.0", "sshtunnel==0.1.5", - "paramiko==2.11.0", - "cryptography == 42.0.8", + "paramiko==3.5.1", ], extras_require={ "test": [