-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (30 loc) · 953 Bytes
/
python-lint.yml
File metadata and controls
34 lines (30 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: python lint
on:
push:
branches: [develop]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
community-apps-python-lint:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: ""
steps:
- name: git clone
uses: actions/checkout@v4
- name: set Python version
run: |
export PYTHON_VERSION=$(yq '.language-support.python.version' workflow-configuration.yml)
echo "This is the Python version => $PYTHON_VERSION"
echo "PYTHON_VERSION=${PYTHON_VERSION}" >> $GITHUB_ENV
working-directory: .nextmv/
- name: set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff==0.6.4
- name: lint with ruff
run: ruff check --output-format=github .