#145 replace shapefile with pyshp module (#146) #43
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: Pylint tests for TCRM | |
on: | |
push: | |
branches: [ master, develop ] | |
jobs: | |
build: | |
name: Pylint TCRM | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: 3.9 | |
miniforge-variant: Mambaforge | |
channels: conda-forge,defaults | |
channel-priority: true | |
activate-environment: tcrm | |
environment-file: tcrmenv.yml | |
auto-activate-base: false | |
use-only-tar-bz2: true | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint | |
- name: Analysing the code with pylint | |
run: | | |
pylint --rcfile pylintrc --fail-under=7 `find -regextype egrep -regex '(.*.py)$'` | | |
tee pylint.txt | |
- name: Upload pylint.txt as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pylint report | |
path: pylint.txt |