Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pylint cleanup, macos build action #377

Closed
wants to merge 40 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
41d1b8d
add macos to test ghaction
evelynmitchell Feb 1, 2024
87626ec
Merge pull request #1 from kyegomez/master
evelynmitchell Feb 1, 2024
25a7f2c
revert macos
evelynmitchell Feb 1, 2024
024c7c3
fix indent line 50
evelynmitchell Feb 1, 2024
0d7faf2
remove steps redo yaml
evelynmitchell Feb 1, 2024
1f4dabb
indent after 52
evelynmitchell Feb 1, 2024
02fcffc
outdent 66
evelynmitchell Feb 1, 2024
59b41d6
change python setup test.yml
evelynmitchell Feb 1, 2024
776fd27
second instance
evelynmitchell Feb 1, 2024
e8ff1b1
remove core, extended only run core
evelynmitchell Feb 1, 2024
52dbabb
more tidy removing extended
evelynmitchell Feb 1, 2024
aa2dad3
pytest added
evelynmitchell Feb 1, 2024
8166818
add pytest to deps
evelynmitchell Feb 1, 2024
0e52be3
fix pytest pyproject
evelynmitchell Feb 1, 2024
37d1662
remove pytest dep
evelynmitchell Feb 1, 2024
9d5f3e7
new test on macos
evelynmitchell Feb 1, 2024
9f786a9
change name of workflow
evelynmitchell Feb 1, 2024
8c6c6d9
bump python to 3.9 in pyproject
evelynmitchell Feb 1, 2024
7d8a521
remove old-docs
evelynmitchell Feb 1, 2024
6ec9cea
change branch name macos test
evelynmitchell Feb 1, 2024
a2589ee
macos only on python 3.13
evelynmitchell Feb 1, 2024
e2b1ca8
latest python setup action
evelynmitchell Feb 1, 2024
a02e07c
python 3.13
evelynmitchell Feb 1, 2024
ef469ea
pin python v to 3.11.7 for macos
evelynmitchell Feb 1, 2024
57c36a1
change poetry install macos
evelynmitchell Feb 1, 2024
070ae43
tensorflow 2.12 may not work with python 3.11 needed for macos-14
evelynmitchell Feb 1, 2024
b069c5a
futz with python vers for tensorflow compat
evelynmitchell Feb 1, 2024
7cf6628
remove tensorflow pin
evelynmitchell Feb 1, 2024
280c823
add python 3.11 3.12 to pylint
evelynmitchell Feb 1, 2024
1145ed4
pylint cleanup examplepy dotenv add to req
evelynmitchell Feb 1, 2024
c735054
add tensorflowio to deps
evelynmitchell Feb 1, 2024
78d4588
fix pyproject import
evelynmitchell Feb 1, 2024
a9356a8
lint mm agent to omnimodal playground
evelynmitchell Feb 1, 2024
0e8b826
add docstring, silence warnings swarms init
evelynmitchell Feb 2, 2024
a3e1c7d
add docstring agents init
evelynmitchell Feb 2, 2024
7b3507d
docstrings agent_wrapper
evelynmitchell Feb 2, 2024
7ae7a8d
docstring
evelynmitchell Feb 2, 2024
543f8f0
change input which is a reserved name
evelynmitchell Feb 2, 2024
e70acba
pylint cleanup agents
evelynmitchell Feb 5, 2024
958d7a6
pylint simple_agent
evelynmitchell Feb 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/pytestmac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test on Macos-14 M1

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: macos-14

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.11.7
uses: actions/setup-python@v5
with:
python-version: 3.11.7

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Install dependencies
run: |
poetry install

- name: Run tests
run: |
poetry run pytest
76 changes: 19 additions & 57 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,58 +19,34 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
test_type:
- "core"
- "extended"

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: "snok/install-poetry@v1"
with:
python-version: ${{ matrix.python-version }}
poetry-version: "1.4.2"
cache-key: ${{ matrix.test_type }}
install-command:
if [ "${{ matrix.test_type }}" == "core" ]; then
echo "Running core tests, installing dependencies with poetry..."
poetry install
else
echo "Running extended tests, installing dependencies with poetry..."
poetry install -E extended_testing
fi
- name: Run ${{matrix.test_type}} tests
run: |
if [ "${{ matrix.test_type }}" == "core" ]; then
make test
else
make extended_tests
fi
echo "Running core tests, installing dependencies with poetry..."
poetry install
- name: Run core tests
run: pytest
shell: bash
name: Python ${{ matrix.python-version }} ${{ matrix.test_type }}
steps:
- uses: actions/checkout@v4
- name: Python ${{ matrix.python-version }} core
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: "./.github/actions/poetry_setup"
uses: "actions/setup-python@v2"
with:
python-version: ${{ matrix.python-version }}
poetry-version: "1.4.2"
cache-key: ${{ matrix.test_type }}
install-command: |
if [ "${{ matrix.test_type }}" == "core" ]; then
echo "Running core tests, installing dependencies with poetry..."
poetry install
else
echo "Running extended tests, installing dependencies with poetry..."
poetry install -E extended_testing
fi
- name: Run ${{matrix.test_type}} tests
run: |
if [ "${{ matrix.test_type }}" == "core" ]; then
make test
else
make extended_tests
fi
echo "Running core tests, installing dependencies with poetry..."
poetry install
- name: Run core tests
run: pytest
shell: bash

build:
runs-on: ubuntu-latest
strategy:
Expand All @@ -80,31 +56,17 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
test_type:
- "core"
- "extended"
name: Python ${{ matrix.python-version }} ${{ matrix.test_type }}
name: Python ${{ matrix.python-version }} core
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: "./.github/actions/poetry_setup"
uses: "actions/setup-python@v2"
with:
python-version: ${{ matrix.python-version }}
poetry-version: "1.4.2"
cache-key: ${{ matrix.test_type }}
install-command: |
if [ "${{ matrix.test_type }}" == "core" ]; then
echo "Running core tests, installing dependencies with poetry..."
poetry install
else
echo "Running extended tests, installing dependencies with poetry..."
poetry install -E extended_testing
fi
- name: Run ${{matrix.test_type}} tests
run: |
if [ "${{ matrix.test_type }}" == "core" ]; then
make test
else
make extended_tests
fi
echo "Running core tests, installing dependencies with poetry..."
poetry install
- name: Run core tests
run: pytest
shell: bash
83 changes: 0 additions & 83 deletions docs/old-docs/C0NTRIBUTING.md

This file was deleted.

Loading
Loading