Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 16, 2025
2 parents 1f69b5f + f104f5e commit 75b55af
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,40 @@ env:
# https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions

jobs:
auto_style:
name: Auto style code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install autopep8
run: |
python -m pip install --upgrade pip
pip install flake8 autopep8
- name: Auto style code with autopep8
run: autopep8 --in-place --aggressive --aggressive --recursive . --max-line-length 180
- name: Check for changes
run: |
if [[ `git status --porcelain` ]]; then
echo "There are changes after auto-styling the code."
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Auto style code with autopep8"
git push
else
echo "No changes detected."
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build:
name: Test on python ${{ matrix.python-version }}
runs-on: ubuntu-latest
needs: [auto_style]
strategy:
# max-parallel: 1
matrix:
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

html_theme_options = {
"announcement": """
<a style=\"text-decoration: none; color: white;\"
<a style=\"text-decoration: none; color: white;\"
href=\"https://github.com/sponsors/rbonghi\">
💖 Support jetson-stats on GitHub Sponsors
</a>
Expand Down
2 changes: 1 addition & 1 deletion jtop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
__copyright__ = "(c) 2024, Raffaello Bonghi"
# Version package
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#choosing-a-versioning-scheme
__version__ = "4.3.0"
__version__ = "4.3.1"
# EOF
2 changes: 1 addition & 1 deletion jtop/core/jetson_clocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class JetsonClocks(object):
#. `jetson_clocks - Jetson Xavier <https://docs.nvidia.com/jetson/archives/r35.2.1/DeveloperGuide/text/SD/PlatformPowerAndPerformance/JetsonXavierNxSeriesAndJetsonAgxXavierSeries.html>`_
#. `jetson_clocks - Jetson Orin <https://docs.nvidia.com/jetson/archives/r35.2.1/DeveloperGuide/text/SD/PlatformPowerAndPerformance/JetsonOrinNxSeriesAndJetsonAgxOrinSeries.html#maximizing-jetson-orin-performance>`_
""" # noqa
""" # noqa

def __init__(self, controller):
self._controller = controller
Expand Down
1 change: 1 addition & 0 deletions jtop/core/jetson_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
# https://developer.nvidia.com/embedded/jetpack-archive
NVIDIA_JETPACK = {
# -------- JP6 --------
"36.4.3": "6.2",
"36.4.2": "6.1 (rev1)",
"36.4.0": "6.1",
"36.3.0": "6.0",
Expand Down

0 comments on commit 75b55af

Please sign in to comment.