diff --git a/.forgejo/workflows/pylint.yml b/.forgejo/workflows/pylint.yml index 72d4b4d..bc177b5 100644 --- a/.forgejo/workflows/pylint.yml +++ b/.forgejo/workflows/pylint.yml @@ -3,23 +3,34 @@ name: Pylint on: [push] jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8.17", "3.9.17", "3.10.12", "3.11.4"] + test: + runs-on: docker + container: + image: fedora:38 # lock to latest *stable*; rawhide/next is 'latest' tag +# strategy: +# matrix: +# python-version: ["3.8.17", "3.9.17", "3.10.12", "3.11.4"] steps: - - uses: https://github.com/actions/checkout@v3 - - name: "Set up Python ${{ matrix.python-version }}" - uses: https://github.com/actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies + - name: Install package dependencies run: | - python -m pip install --upgrade pip - pip install wheel - pip install -r requirements.txt - pip install pylint + echo "Making DNF more performant with these directives:" + echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf + dnf -yq install nodejs git python3-pip python3-virtualenv +# - name: "Set up Python ${{ matrix.python-version }}" +# uses: https://github.com/actions/setup-python@v3 +# with: +# python-version: ${{ matrix.python-version }} + - uses: actions/checkout@v3 + - name: Install Python dependencies + run: | + python3 -m venv venv + source venv/bin/activate + python3 -m pip install --upgrade pip + python3 -m pip install --upgrade wheel + python3 -m pip install pylint + python3 -m pip install --no-compile -r requirements.txt - name: Analysing the code with pylint run: | + source venv/bin/activate + python3 -m pip list pylint $(git ls-files '*.py') diff --git a/README.md b/README.md index a09732e..ae68712 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # amdgpu_stats -![pylint](https://github.com/joshlay/amdgpu_stats/actions/workflows/pylint.yml/badge.svg) A Python module/TUI for AMD GPU statistics -![Screenshot of the main stats table](https://raw.githubusercontent.com/joshlay/amdgpu_stats/master/screens/main.svg "Main screen") -![Screenshot of the 'graphing' scroll bars](https://raw.githubusercontent.com/joshlay/amdgpu_stats/master/screens/graphs.svg "Graphs") -![Screenshot of the 'Logs' tab pane](https://raw.githubusercontent.com/joshlay/amdgpu_stats/master/screens/logs.svg "Logs") +![Screenshot of the main stats table](https://git.jlay.dev/jlay/amdgpu_stats/raw/branch/master/screens/main.svg "Main screen") +![Screenshot of the 'graphing' scroll bars](https://git.jlay.dev/jlay/amdgpu_stats/raw/branch/master/screens/graphs.svg "Graphs") +![Screenshot of the 'Logs' tab pane](https://git.jlay.dev/jlay/amdgpu_stats/raw/branch/master/screens/logs.svg "Logs") Tested _only_ on `RX6000` series cards; APUs and more _may_ be supported. Please file an issue if finding incompatibility! diff --git a/requirements.txt b/requirements.txt index ffd6e5e..58c037d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -textual>=0.16.0 +textual>=0.32.0 humanfriendly==10.0 -pyyaml==6.0 +rich>=13.3.3