File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22name : Lint
33on : [push, pull_request] # yamllint disable-line rule:truthy
4+
45jobs :
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 .
Load diff This file was deleted.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55
66[tool .poetry ]
77name = " swarms"
8- version = " 7.9.2 "
8+ version = " 7.9.3 "
99description = " Swarms - TGSC"
1010license = " MIT"
1111authors = [" Kye Gomez <kye@apac.ai>" ]
You can’t perform that action at this time.
0 commit comments