Skip to content

Commit e2de9b3

Browse files
committed
feat: add lint gh action
1 parent 49b2f16 commit e2de9b3

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

Diff for: .github/workflows/ci-test.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ci-test
2+
on: [ push, pull_request ]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Install Python
9+
uses: actions/setup-python@v5
10+
with:
11+
python-version: "3.12"
12+
- name: Install Poetry
13+
uses: abatilo/actions-poetry@v3
14+
with:
15+
poetry-version: "2.1.1"
16+
- name: Install Dependencies
17+
run: |
18+
poetry install
19+
# Update output format to enable automatic inline annotations.
20+
- name: Lint check
21+
run: poetry run ruff check --output-format=github .
22+
- name: Unit test
23+
run: poetry run pytest

Diff for: .github/workflows/lint.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: lint-check
2+
on: [ push, pull_request ]
3+
jobs:
4+
lint-check:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: astral-sh/ruff-action@v3

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Release](https://img.shields.io/github/v/release/agntcy/workflow-srv?display_name=tag)](CHANGELOG.md)
44
[![Contributor-Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-fbab2c.svg)](CODE_OF_CONDUCT.md)
5+
[![Lint](https://github.com/agntcy/workflow-srv/actions/workflows/ci-test.yaml/badge.svg?branch=PUCCINI-270-lint-gha)](https://github.com/agntcy/workflow-srv/actions/workflows/ci-test.yaml?query=branch%3Amain)
56

67
The Agent Workflow Server (AgWS) enables participation in the Internet of Agents [(IoA)](https://docs.agntcy.org/). It accommodates AI Agents from diverse frameworks and exposes them through Agent Connect Protocol [(ACP)](https://github.com/agntcy/acp-spec), regardless of their underlying implementation.
78

0 commit comments

Comments
 (0)