feat(import): add support for import endpoint #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Quality | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "cytomine/**/*.py" | |
- "examples/**/*.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 | |
- name: Check lint | |
run: pylint --output=lint.txt cytomine examples 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 |