Skip to content

Transition Gunicorn WSGI Workers to Threaded Model (gthread) #6162

Transition Gunicorn WSGI Workers to Threaded Model (gthread)

Transition Gunicorn WSGI Workers to Threaded Model (gthread) #6162

Workflow file for this run

name: linters
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
PyLint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.14"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dependencies
uses: actions/cache@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt', 'test_requirements.txt', 'Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: |
pip install -r test_requirements.txt
pip install -r requirements.txt
pip install -e .
pip install api_client/python
pip install importer_client/python
pip install cli_client/python
- name: Run pylint
run: |
git config pull.rebase false && git fetch -p origin master
for FILE in `git --no-pager diff origin/master --name-only --diff-filter=ACMR | grep \.py$`; do echo "Running pylint against ${FILE}"; pylint --rcfile=.pylintrc ${FILE}; done
Black-formatter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: psf/black@stable
ESLint-frontend-ng:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./timesketch/frontend-ng
strategy:
matrix:
node-version: ["24"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Cache yarn dependencies
uses: actions/cache@v5
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('timesketch/frontend-ng/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node-version }}-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run eslint
run: |
git config pull.rebase false && git fetch -p origin master
for FILE in `git --no-pager diff origin/master --name-only --diff-filter=ACMR | grep -e \.vue$ -e \.js$ | grep -v dist\/js | grep ^timesketch\/frontend-ng\/ | sed s/'^timesketch\/frontend-ng\/'/''/`; do echo "Running eslint against ${FILE}"; yarn run eslint ${FILE}; done