Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Merge pull request #6 from nextmv-io/feature/eng-5126-update-python-t… #31

Merge pull request #6 from nextmv-io/feature/eng-5126-update-python-t…

Merge pull request #6 from nextmv-io/feature/eng-5126-update-python-t… #31

Workflow file for this run

name: python lint
on: [push]
jobs:
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.1.6
- name: lint with ruff
run: ruff check --output-format=github .