Archived
1
1
Fork 0

Merge pull request 'simplify, single version/set image' (#2) from workflow_update into master

Reviewed-on: https://git.jlay.dev/jlay/amdgpu_stats/pulls/2
This commit is contained in:
jlay 2023-08-06 02:46:56 -05:00
commit 67e6d0b690
3 changed files with 31 additions and 21 deletions

View file

@ -3,23 +3,34 @@ name: Pylint
on: [push] on: [push]
jobs: jobs:
build: test:
runs-on: ubuntu-latest runs-on: docker
strategy: container:
matrix: image: fedora:38 # lock to latest *stable*; rawhide/next is 'latest' tag
python-version: ["3.8.17", "3.9.17", "3.10.12", "3.11.4"] # strategy:
# matrix:
# python-version: ["3.8.17", "3.9.17", "3.10.12", "3.11.4"]
steps: steps:
- uses: https://github.com/actions/checkout@v3 - name: Install package dependencies
- name: "Set up Python ${{ matrix.python-version }}"
uses: https://github.com/actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: | run: |
python -m pip install --upgrade pip echo "Making DNF more performant with these directives:"
pip install wheel echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf
pip install -r requirements.txt dnf -yq install nodejs git python3-pip python3-virtualenv
pip install pylint # - 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 - name: Analysing the code with pylint
run: | run: |
source venv/bin/activate
python3 -m pip list
pylint $(git ls-files '*.py') pylint $(git ls-files '*.py')

View file

@ -1,11 +1,10 @@
# amdgpu_stats # amdgpu_stats
![pylint](https://github.com/joshlay/amdgpu_stats/actions/workflows/pylint.yml/badge.svg)
A Python module/TUI for AMD GPU statistics 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 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://raw.githubusercontent.com/joshlay/amdgpu_stats/master/screens/graphs.svg "Graphs") ![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://raw.githubusercontent.com/joshlay/amdgpu_stats/master/screens/logs.svg "Logs") ![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! Tested _only_ on `RX6000` series cards; APUs and more _may_ be supported. Please file an issue if finding incompatibility!

View file

@ -1,3 +1,3 @@
textual>=0.16.0 textual>=0.32.0
humanfriendly==10.0 humanfriendly==10.0
pyyaml==6.0 rich>=13.3.3