Skip to content

fix(list): remove authorization from APIs and add admin pages #252

fix(list): remove authorization from APIs and add admin pages

fix(list): remove authorization from APIs and add admin pages #252

name: lint-changed-files
on:
push:
branches:
- main
- develop
workflow_dispatch: {}
pull_request:
branches:
- main
- develop
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
- name: List all changed files and lint them
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }} ; do
# check if file is python file
if [[ ${file} == *.py ]]; then
black --check ${file}
fi
done