Skip to content

Commit

Permalink
lint yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alckasoc committed Jan 8, 2025
1 parent 001c51f commit 4f8e777
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: lint
on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- "gui_agents/**"
- "tests/**"
- ".github/workflows/lint.yml"
push:
branches:
- main
paths:
- "gui_agents/**"
- "tests/**"
- ".github/workflows/lint.yml"

env:
SUPPORTED_PYTHON_VERSIONS: "3.11"

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run Linter
run: |
black --check gui_agents tests
isort --check-only gui_agents tests

0 comments on commit 4f8e777

Please sign in to comment.