Archived
1
1
Fork 0
This repository has been archived on 2024-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
amdgpu_stats/.forgejo/workflows/pylint.yml

26 lines
807 B
YAML
Raw Normal View History

2023-04-23 22:02:45 +00:00
name: Pylint
on: [push]
jobs:
2023-08-06 07:03:24 +00:00
test:
runs-on: docker
container:
image: fedora:38 # lock to latest *stable*; rawhide/next is 'latest' tag
2023-04-23 22:02:45 +00:00
steps:
2023-08-06 07:41:21 +00:00
- name: Install package dependencies
2023-08-06 07:07:15 +00:00
run: |
2023-08-06 07:44:49 +00:00
echo "Making DNF more performant with these directives:"
echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf
2023-08-30 04:39:31 +00:00
dnf -yq install nodejs git python3-pip pylint
- uses: actions/checkout@v3
2023-08-06 07:41:21 +00:00
- name: Install Python dependencies
2023-04-23 22:02:45 +00:00
run: |
2023-08-06 07:44:49 +00:00
python3 -m pip install --upgrade pip
python3 -m pip install --no-compile -r requirements.txt
2023-08-30 04:39:31 +00:00
- name: Show Python modules / versions
run: python3 -m pip list
- name: Analyse the code with pylint
2023-04-23 22:02:45 +00:00
run: |
pylint $(git ls-files '*.py')