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:
commit
67e6d0b690
3 changed files with 31 additions and 21 deletions
|
@ -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')
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
# amdgpu_stats
|
||||

|
||||
|
||||
A Python module/TUI for AMD GPU statistics
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Tested _only_ on `RX6000` series cards; APUs and more _may_ be supported. Please file an issue if finding incompatibility!
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
textual>=0.16.0
|
||||
textual>=0.32.0
|
||||
humanfriendly==10.0
|
||||
pyyaml==6.0
|
||||
rich>=13.3.3
|
||||
|
|
Reference in a new issue