-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from networktocode/release-1.8.0
Release 1.8.0
- Loading branch information
Showing
14 changed files
with
1,270 additions
and
807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
- name: "Check out repository code" | ||
uses: "actions/checkout@v2" | ||
- name: "Setup environment" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v1" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v5" | ||
- name: "Linting: black" | ||
run: "poetry run invoke black" | ||
bandit: | ||
|
@@ -40,7 +40,7 @@ jobs: | |
- name: "Check out repository code" | ||
uses: "actions/checkout@v2" | ||
- name: "Setup environment" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v1" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v5" | ||
- name: "Linting: bandit" | ||
run: "poetry run invoke bandit" | ||
needs: | ||
|
@@ -53,7 +53,7 @@ jobs: | |
- name: "Check out repository code" | ||
uses: "actions/checkout@v2" | ||
- name: "Setup environment" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v1" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v5" | ||
- name: "Linting: pydocstyle" | ||
run: "poetry run invoke pydocstyle" | ||
needs: | ||
|
@@ -66,7 +66,7 @@ jobs: | |
- name: "Check out repository code" | ||
uses: "actions/checkout@v2" | ||
- name: "Setup environment" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v1" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v5" | ||
- name: "Linting: flake8" | ||
run: "poetry run invoke flake8" | ||
needs: | ||
|
@@ -79,8 +79,8 @@ jobs: | |
- name: "Check out repository code" | ||
uses: "actions/checkout@v2" | ||
- name: "Setup environment" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v1" | ||
- name: "Linting: flake8" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v5" | ||
- name: "Linting: mypy" | ||
run: "poetry run invoke mypy" | ||
needs: | ||
- "black" | ||
|
@@ -92,7 +92,7 @@ jobs: | |
- name: "Check out repository code" | ||
uses: "actions/checkout@v2" | ||
- name: "Setup environment" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v1" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v5" | ||
- name: "Linting: yamllint" | ||
run: "poetry run invoke yamllint" | ||
needs: | ||
|
@@ -103,7 +103,7 @@ jobs: | |
- name: "Check out repository code" | ||
uses: "actions/checkout@v2" | ||
- name: "Setup environment" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v1" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v5" | ||
- name: "Build Container" | ||
run: "poetry run invoke build" | ||
needs: | ||
|
@@ -118,7 +118,7 @@ jobs: | |
- name: "Check out repository code" | ||
uses: "actions/checkout@v2" | ||
- name: "Setup environment" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v1" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v5" | ||
- name: "Build Container" | ||
run: "poetry run invoke build" | ||
- name: "Linting: Pylint" | ||
|
@@ -137,7 +137,7 @@ jobs: | |
- name: "Check out repository code" | ||
uses: "actions/checkout@v2" | ||
- name: "Setup environment" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v2" | ||
uses: "networktocode/gh-action-setup-poetry-environment@v5" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: "Install redis" | ||
|
@@ -203,3 +203,39 @@ jobs: | |
password: "${{ secrets.PYPI_API_TOKEN }}" | ||
needs: | ||
- "unittest" | ||
slack-notify: | ||
needs: | ||
- "publish_gh" | ||
- "publish_pypi" | ||
name: "Send notification to the Slack" | ||
runs-on: "ubuntu-20.04" | ||
env: | ||
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}" | ||
SLACK_MESSAGE: >- | ||
*NOTIFICATION: NEW-RELEASE-PUBLISHED*\n | ||
Repository: <${{ github.server_url }}/${{ github.repository }}|${{ github.repository }}>\n | ||
Release: <${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }}|${{ github.ref_name }}>\n | ||
Published by: <${{ github.server_url }}/${{ github.actor }}|${{ github.actor }}> | ||
steps: | ||
- name: "Send a notification to Slack" | ||
# ENVs cannot be used directly in job.if. This is a workaround to check | ||
# if SLACK_WEBHOOK_URL is present. | ||
if: "${{ env.SLACK_WEBHOOK_URL != '' }}" | ||
uses: "slackapi/[email protected]" | ||
with: | ||
payload: | | ||
{ | ||
"text": "${{ env.SLACK_MESSAGE }}", | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "${{ env.SLACK_MESSAGE }}" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}" | ||
SLACK_WEBHOOK_TYPE: "INCOMING_WEBHOOK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright 2020 Network to Code <[email protected]> | ||
Copyright 2020-2023 Network to Code <[email protected]> | ||
Network to Code, LLC | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.