-
Notifications
You must be signed in to change notification settings - Fork 0
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 #317 from Zerohertz/chore-v1.1.5
- Loading branch information
Showing
89 changed files
with
427 additions
and
286 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,78 +59,78 @@ jobs: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} | ||
if: always() | ||
|
||
deploy-github: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Tag and push | ||
env: | ||
GH_USERNAME: ${{ secrets.GH_USERNAME }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: | | ||
VERSION=$(cat zerohertzLib/__init__.py | grep __version__ | sed 's/.*= "\(.*\)"/\1/') | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "${GH_USERNAME}" | ||
git config --global credential.helper "!f() { echo username=${GH_USERNAME}; echo password=${GH_TOKEN}; }; f" | ||
git tag ${VERSION} | ||
git push origin ${VERSION} | ||
- name: Slack webhook | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
author_name: zerohertzLib | ||
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took | ||
if_mention: failure,cancelled | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} | ||
if: always() | ||
|
||
deploy-pypi: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Cache virtualenv | ||
uses: actions/cache@v4 | ||
with: | ||
path: venv | ||
key: ${{ runner.os }}-python-venv | ||
restore-keys: | | ||
${{ runner.os }}-python-venv- | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: build-artifacts | ||
path: dist | ||
|
||
- name: Deploy to PyPI | ||
env: | ||
PYPI_USERNAME: ${{ secrets.GH_USERNAME }} | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
source venv/bin/activate | ||
pip install twine | ||
twine upload -u ${PYPI_USERNAME} -p ${PYPI_TOKEN} dist/* | ||
- name: Slack webhook | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
author_name: zerohertzLib | ||
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took | ||
if_mention: failure,cancelled | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} | ||
if: always() | ||
# deploy-github: | ||
# runs-on: ubuntu-latest | ||
# needs: [build] | ||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Tag and push | ||
# env: | ||
# GH_USERNAME: ${{ secrets.GH_USERNAME }} | ||
# GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
# run: | | ||
# VERSION=$(cat zerohertzLib/__init__.py | grep __version__ | sed 's/.*= "\(.*\)"/\1/') | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "${GH_USERNAME}" | ||
# git config --global credential.helper "!f() { echo username=${GH_USERNAME}; echo password=${GH_TOKEN}; }; f" | ||
# git tag ${VERSION} | ||
# git push origin ${VERSION} | ||
# | ||
# - name: Slack webhook | ||
# uses: 8398a7/action-slack@v3 | ||
# with: | ||
# status: ${{ job.status }} | ||
# author_name: zerohertzLib | ||
# fields: repo,message,commit,author,action,eventName,ref,workflow,job,took | ||
# if_mention: failure,cancelled | ||
# env: | ||
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} | ||
# if: always() | ||
# | ||
# deploy-pypi: | ||
# runs-on: ubuntu-latest | ||
# needs: [build] | ||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: 3.11 | ||
# | ||
# - name: Cache virtualenv | ||
# uses: actions/cache@v4 | ||
# with: | ||
# path: venv | ||
# key: ${{ runner.os }}-python-venv | ||
# restore-keys: | | ||
# ${{ runner.os }}-python-venv- | ||
# | ||
# - name: Download build artifacts | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: build-artifacts | ||
# path: dist | ||
# | ||
# - name: Deploy to PyPI | ||
# env: | ||
# PYPI_USERNAME: ${{ secrets.GH_USERNAME }} | ||
# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
# run: | | ||
# source venv/bin/activate | ||
# pip install twine | ||
# twine upload -u ${PYPI_USERNAME} -p ${PYPI_TOKEN} dist/* | ||
# | ||
# - name: Slack webhook | ||
# uses: 8398a7/action-slack@v3 | ||
# with: | ||
# status: ${{ job.status }} | ||
# author_name: zerohertzLib | ||
# fields: repo,message,commit,author,action,eventName,ref,workflow,job,took | ||
# if_mention: failure,cancelled | ||
# env: | ||
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }} | ||
# if: always() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: 100% | ||
patch: | ||
default: | ||
target: 100% | ||
|
||
comment: | ||
layout: "condensed_header, condensed_files, diff, flags, files, condensed_footer" | ||
behavior: default | ||
require_changes: false | ||
require_base: false | ||
require_head: false | ||
hide_project_coverage: false |
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 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 2295c2129dca9d0dbb5e80a230d13c02 | ||
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 42bdd5c5b1074d55d752d8e7e6a69aab | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.