Skip to content

Hotfix: Improved variable names in ollama-chatbot-fn #36

Hotfix: Improved variable names in ollama-chatbot-fn

Hotfix: Improved variable names in ollama-chatbot-fn #36

name: Linter code check
on:
push:
branches:
- main
- stage
- develop
pull_request:
types: [opened, reopened, synchronize]
branches:
- main
- stage
- develop
jobs:
define-dirs:
runs-on: ubuntu-latest
outputs:
dirs: ${{ steps.dirs.outputs.dirs }}
steps:
- uses: actions/checkout@v3
- name: Define Dirs
id: dirs
run: result=$(echo tasks/*/ | sed 's/\([^ ]*\)/"\1",/g') && result="${result%,}" && echo "dirs=[$result]" >> "$GITHUB_OUTPUT"
build:
runs-on: ubuntu-latest
needs: define-dirs
strategy:
matrix:
dirs: ${{ fromJSON(needs.define-dirs.outputs.dirs) }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install mypy globally
run: |
pip install mypy
- name: Analysing templates with mypy
run: |
bash .github/workflows/linter-code-check.sh ${{matrix.dirs}}