Update CI :

- Python version update to 3.10
- Add the Pylinter step with the main pull request
- Py Linter, add the exit code saved
This commit is contained in:
Aurelien Vaillant
2022-06-08 10:16:32 +02:00
parent afd9305959
commit 0d34a9e381
3 changed files with 12 additions and 5 deletions
+6 -4
View File
@@ -1,4 +1,4 @@
name: Unit Test
name: Pylinter
on:
workflow_call:
@@ -16,13 +16,15 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install the linter app
python-version: 3.10
- name: Install the linter app and set package name
id: config
run: |
echo "::set-output name=folder::$(python '.github/package.py')"
python -m pip install --upgrade pip
python -m pip install -r linter/requirements_linter.txt
- name: Execute the pylinter
run: |
cd ${{ github.workspace }}
pylint --rcfile=${{ github.workspace }}/linter/.pylintrc
pylint --rcfile=${{ github.workspace }}/linter/.pylintrc ${{ steps.config.outputs.folder }} -E