Skip to content

Merge upstream commits #6

Merge upstream commits

Merge upstream commits #6

Workflow file for this run

name: Code Quality
on:
pull_request:
branches:
- main
paths:
- "cytomine/**/*.py"
- "tests/**/*.py"
jobs:
check-lint:
runs-on: ubuntu-latest
steps:
- name: Set up the repository
uses: actions/checkout@v3
- name: Set up Python ${{ vars.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ vars.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint pytest
- name: Check lint
run: pylint --output=lint.txt cytomine tests
- name: Upload lint report
if: ${{ always() }}
run: |
echo '# Lint report' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat lint.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY