3434 - name : Detect and tag new version
3535 id : check-version
3636 if : steps.check-parent-commit.outputs.sha
37- uses : salsify/action-detect-and-tag-new-version@b1778166f13188a9d478e2d1198f993011ba9864 # v2.0.3
37+ uses : salsify/action-detect-and-tag-new-version@v2
3838 with :
3939 version-command : |
4040 bash -o pipefail -c "poetry version | awk '{ print \$2 }'"
@@ -54,11 +54,14 @@ jobs:
5454 run : |
5555 poetry run pytest --cov=sns_extended_client test --cov-report term-missing
5656 - name : configure aws credentials
57- uses : aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
57+ uses : aws-actions/configure-aws-credentials@v4
5858 with :
5959 role-to-assume : ${{ vars.OIDC_ROLE_NAME }}
6060 role-session-name : publishrolesession
6161 aws-region : ${{ env.AWS_REGION }}
62+ - name : Run Integration Tests
63+ run : |
64+ poetry run pytest test_integ
6265 - name : Retrieve TEST PYPI TOKEN from secretsmanager
6366 id : get-test-pypi-token
6467 if : " ! steps.check-version.outputs.tag"
@@ -71,14 +74,14 @@ jobs:
7174 echo "token=$(aws secretsmanager get-secret-value --secret-id ${{ vars.PYPI_TOKEN_NAME }} | jq -r '.SecretString')" >> $GITHUB_OUTPUT
7275 - name : Publish package on TestPyPI
7376 if : " ! steps.check-version.outputs.tag"
74- uses : pypa/gh-action-pypi-publish@f8c70e705ffc13c3b4d1221169b84f12a75d6ca8 # release/v1
77+ uses : pypa/gh-action-pypi-publish@release/v1
7578 with :
7679 user : __token__
7780 password : ${{ steps.get-test-pypi-token.outputs.token }}
78- repository_url : https://test.pypi.org/legacy/
81+ repository-url : https://test.pypi.org/legacy/
7982 - name : Publish package on PyPI
8083 if : steps.check-version.outputs.tag
81- uses : pypa/gh-action-pypi-publish@f8c70e705ffc13c3b4d1221169b84f12a75d6ca8 # release/v1
84+ uses : pypa/gh-action-pypi-publish@release/v1
8285 with :
8386 user : __token__
8487 password : ${{ steps.get-pypi-token.outputs.token }}
0 commit comments