-
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 #15 from ZPascal/add-more-sample-dashboards
feat: Add more sample dashboards and adjust the documentation
- Loading branch information
Showing
7 changed files
with
5,513 additions
and
75 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 |
---|---|---|
|
@@ -13,10 +13,10 @@ jobs: | |
python-version: [ '3.x' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
@@ -35,10 +35,10 @@ jobs: | |
python-version: [ '3.x' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
@@ -48,7 +48,7 @@ jobs: | |
run: pip install -r requirements.txt | ||
|
||
- name: Execute the linting checks | ||
uses: reviewdog/action-flake8@v3.2.0 | ||
uses: reviewdog/action-flake8@v3.8.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
flake8_args: --config=.flake8 | ||
|
@@ -60,13 +60,13 @@ jobs: | |
python-version: [ '3.x' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
@@ -79,7 +79,7 @@ jobs: | |
run: export PYTHONPATH=$PWD && pytest --junitxml=pytest.xml --cov=. tests/ | tee pytest-coverage.txt | ||
|
||
- name: Execute the coverage checks | ||
uses: MishaKav/[email protected].16 | ||
uses: MishaKav/[email protected].48 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
pytest-coverage-path: ./pytest-coverage.txt | ||
|
@@ -90,11 +90,8 @@ jobs: | |
- name: Generate coverage badge | ||
run: coverage-badge -f -o docs/coverage.svg | ||
|
||
- name: Generate documentation | ||
run: pydoc-markdown --render-toc && rm -rf docs/content && mv build/docs/* docs | ||
|
||
- name: Check changed files | ||
uses: tj-actions/verify-changed-files@v8.8 | ||
uses: tj-actions/verify-changed-files@v16 | ||
id: verify-changed-files | ||
with: | ||
files: | | ||
|
@@ -106,7 +103,7 @@ jobs: | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git add --force docs | ||
git commit -m "Add coverage badge and documentation" | ||
git commit -m "Add coverage badge" | ||
- name: Push changes | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' | ||
|
@@ -115,3 +112,50 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.head_ref }} | ||
force: true | ||
|
||
documentation: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.9' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
cache: 'pip' | ||
|
||
- name: Install the requirements | ||
run: pip install pydoc-markdown==4.6.3 mkdocs mkdocs-material | ||
|
||
- name: Generate documentation | ||
run: pydoc-markdown --render-toc && rm -rf docs/content && mv build/docs/* docs | ||
|
||
- name: Check changed files | ||
uses: tj-actions/verify-changed-files@v16 | ||
id: verify-changed-files | ||
with: | ||
files: | | ||
docs | ||
- name: Commit files | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git add --force docs | ||
git commit -m "docs: Add the documentation" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.head_ref }} |
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.