This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
fix: alignment of return values and variable assignments (#184) #18
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 test | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
pull_request: | |
branches: | |
- master | |
- dev | |
jobs: | |
configure: | |
runs-on: ubuntu-latest | |
outputs: | |
uid_gid: ${{ steps.get-user.outputs.uid_gid }} | |
steps: | |
- id: get-user | |
run: echo "::set-output name=uid_gid::$(id -u):$(id -g)" | |
pylint: | |
runs-on: ubuntu-latest | |
needs: [configure] | |
container: | |
image: ghcr.io/ocean-data-factory-sweden/kso:dev | |
options: --user ${{ needs.configure.outputs.uid_gid }} | |
credentials: | |
username: '${{ github.actor }}' | |
password: '${{ secrets.GITHUB_TOKEN }}' | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install pylint and analyse all .py and .ipynb files | |
run: | | |
python3 -m pip install pylint | |
/github/home/.local/bin/pylint kso_utils | |
# HACK: add pylint to requirements later, then we can just have pylint here instead of this path. |