Skip to content

Commit 45866bc

Browse files
Merge branch 'master' into Fix/stream-issues
2 parents ccddb17 + c96b9e1 commit 45866bc

4 files changed

Lines changed: 58 additions & 76 deletions

File tree

.github/workflows/lint.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
---
22
name: Lint
33
on: [push, pull_request] # yamllint disable-line rule:truthy
4+
45
jobs:
5-
yaml-lint:
6+
lint:
67
runs-on: ubuntu-latest
78
steps:
89
- uses: actions/checkout@v4
9-
- uses: actions/setup-python@v5
10-
- run: pip install yamllint
11-
- run: yamllint .
12-
flake8-lint:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-python@v5
17-
- run: pip install flake8
18-
- run: flake8 .
19-
ruff-lint:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v4
23-
- uses: actions/setup-python@v5
24-
- run: pip install ruff
25-
- run: ruff format .
26-
- run: ruff check --fix .
27-
pylint-lint:
28-
runs-on: ubuntu-latest
29-
steps:
30-
- uses: actions/checkout@v4
31-
- uses: actions/setup-python@v5
32-
- run: pip install pylint
33-
- run: pylint swarms --recursive=y
10+
11+
- name: Set up Python
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: '3.10'
15+
16+
- name: Cache pip dependencies
17+
uses: actions/cache@v3
18+
with:
19+
path: ~/.cache/pip
20+
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
21+
restore-keys: |
22+
${{ runner.os }}-pip-
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install black==24.2.0 ruff==0.2.1
28+
29+
- name: Check Black formatting
30+
run: black . --check --diff
31+
32+
- name: Run Ruff linting
33+
run: ruff check .

.github/workflows/semgrep.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python 3.10
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.10"
20+
21+
- name: Install Poetry
22+
run: |
23+
curl -sSL https://install.python-poetry.org | python3 -
24+
25+
- name: Install dependencies
26+
run: |
27+
poetry install --with test
28+
29+
- name: Run tests
30+
run: |
31+
poetry run pytest tests/ -v

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55

66
[tool.poetry]
77
name = "swarms"
8-
version = "7.9.2"
8+
version = "7.9.3"
99
description = "Swarms - TGSC"
1010
license = "MIT"
1111
authors = ["Kye Gomez <kye@apac.ai>"]

0 commit comments

Comments
 (0)