-
-
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
1 parent
132d771
commit 5c76814
Showing
34 changed files
with
1,816 additions
and
1 deletion.
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,51 @@ | ||
--- | ||
|
||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: [latest] | ||
paths: | ||
- '**.py' | ||
- '**.yml' | ||
- '.github/workflows/lint.yml' | ||
- 'requirements_lint.txt' | ||
pull_request: | ||
branches: [latest] | ||
paths: | ||
- '**.py' | ||
- '**.yml' | ||
- '.github/workflows/lint.yml' | ||
- 'requirements_lint.txt' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Install python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: pip install -r requirements_lint.txt | ||
shell: bash | ||
|
||
- name: Running PyLint | ||
run: | | ||
pylint --version | ||
pylint --recursive=y . | ||
shell: bash | ||
|
||
- name: Running YamlLint | ||
run: | | ||
yamllint --version | ||
yamllint . | ||
shell: bash | ||
|
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,43 @@ | ||
--- | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Install python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: pip install -r requirements_build.txt | ||
shell: bash | ||
|
||
- name: Extract tag name | ||
id: version | ||
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3 | cut -c 2-) | ||
|
||
- name: Update version in setup.py | ||
run: >- | ||
sed -i 's/version=.*/version="${{ steps.version.outputs.TAG_NAME }}",/g' setup.py | ||
- name: Building | ||
run: python3 -m build | ||
shell: bash | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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,41 @@ | ||
--- | ||
|
||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [latest] | ||
paths: | ||
- '**.py' | ||
- '.github/workflows/test.yml' | ||
- 'requirements_test.txt' | ||
pull_request: | ||
branches: [latest] | ||
paths: | ||
- '**.py' | ||
- '**.yml' | ||
- '.github/workflows/test.yml' | ||
- 'requirements_test.txt' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 1 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Install python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: pip install -r requirements_test.txt | ||
shell: bash | ||
|
||
- name: Running Tests | ||
run: python3 -m pytest | ||
shell: bash |
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,4 @@ | ||
.idea/ | ||
dist/ | ||
venv/ | ||
ansible_webui.egg-info/ |
Oops, something went wrong.