-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
18,008 additions
and
5,089 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
name: Lint | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Ruff | ||
if: success() || failure() | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: ruff --all-files | ||
|
||
- name: Black | ||
if: success() || failure() | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: black --all-files --verbose | ||
|
||
- name: Blackdoc | ||
if: success() || failure() | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: blackdoc --all-files | ||
name: Lint | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Ruff | ||
if: success() || failure() | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: ruff --all-files | ||
|
||
- name: Black | ||
if: success() || failure() | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: black --all-files --verbose | ||
|
||
- name: Blackdoc | ||
if: success() || failure() | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: blackdoc --all-files |
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,56 +1,56 @@ | ||
name: Package Release to PyPI | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish to PyPI | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install build | ||
- name: Build a binary wheel | ||
run: >- | ||
python -m build | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
- name: Get Asset name | ||
if: success() || failure() | ||
run: | | ||
export PKG=$(ls dist/ | grep tar) | ||
set -- $PKG | ||
echo "asset_name=$1" >> $GITHUB_ENV | ||
- name: Create GitHub Release | ||
if: success() || failure() | ||
id: create_release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: ${{ github.ref }} | ||
tag_name: ${{ github.ref }} | ||
files: | | ||
dist/${{ env.asset_name }} | ||
draft: false | ||
prerelease: false | ||
token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
name: Package Release to PyPI | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish to PyPI | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install build | ||
- name: Build a binary wheel | ||
run: >- | ||
python -m build | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
- name: Get Asset name | ||
if: success() || failure() | ||
run: | | ||
export PKG=$(ls dist/ | grep tar) | ||
set -- $PKG | ||
echo "asset_name=$1" >> $GITHUB_ENV | ||
- name: Create GitHub Release | ||
if: success() || failure() | ||
id: create_release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: ${{ github.ref }} | ||
tag_name: ${{ github.ref }} | ||
files: | | ||
dist/${{ env.asset_name }} | ||
draft: false | ||
prerelease: false | ||
token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token |
Oops, something went wrong.