-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
1 parent
7b44f0e
commit c56d25b
Showing
1 changed file
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Compare actions | ||
description: Compare actions' environments and show their diff | ||
|
||
inputs: | ||
pkg-name: | ||
description: package name inside lightning.* | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: install dev. env | ||
run: pip install "twine==4.0.1" setuptools wheel flake8 | ||
shell: bash | ||
|
||
- name: Create package | ||
env: | ||
PACKAGE_NAME: ${{ inputs.pkg-name }} | ||
run: | | ||
python setup.py check --metadata --strict | ||
flake8 src/lightning/ --ignore E402,F401,E501,W391,E303 | ||
python setup.py sdist bdist_wheel | ||
shell: bash | ||
|
||
- name: Check package | ||
run: | | ||
ls -l dist/ | ||
twine check dist/* | ||
# python setup.py clean | ||
shell: bash | ||
|
||
- name: copy/export pkg | ||
run: cp dist/* pypi/ | ||
shell: bash |