-
-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #443 from Wyatt-Stanke/master
CI/Code Style Rework
- Loading branch information
Showing
28 changed files
with
266 additions
and
726 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,33 @@ | ||
--- | ||
name: "Init Environment" | ||
description: "Initialize environment for tests" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout actions | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root --with test --with dev --all-extras | ||
shell: bash | ||
|
||
- name: Activate venv | ||
run: | | ||
source .venv/bin/activate | ||
echo PATH=$PATH >> $GITHUB_ENV | ||
shell: bash | ||
- name: Checkout actions | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{hashFiles('**/poetry.lock') }} | ||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root --with test --with dev --all-extras | ||
shell: bash | ||
- name: Activate venv | ||
run: | | ||
source .venv/bin/activate | ||
echo PATH=$PATH >> $GITHUB_ENV | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,34 @@ | ||
--- | ||
# this is a config file for the github action labeler | ||
|
||
# Add 'label1' to any changes within 'example' folder or any subfolders | ||
example_change: | ||
- example/** | ||
|
||
# Add 'label2' to any file changes within 'example2' folder | ||
example2_change: example2/* | ||
|
||
# Add label3 to any change to .txt files within the entire repository. | ||
# Quotation marks are required for the leading asterisk | ||
text_files: | ||
- '**/*.txt' | ||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: ["docs/**", "*.md"] | ||
tests: | ||
- changed-files: | ||
- any-glob-to-any-file: "tests/**" | ||
agents: | ||
- changed-files: | ||
- any-glob-to-any-file: "swarms/agents/**" | ||
artifacts: | ||
- changed-files: | ||
- any-glob-to-any-file: "swarms/artifacts/**" | ||
memory: | ||
- changed-files: | ||
- any-glob-to-any-file: "swarms/memory/**" | ||
models: | ||
- changed-files: | ||
- any-glob-to-any-file: "swarms/models/**" | ||
prompts: | ||
- changed-files: | ||
- any-glob-to-any-file: "swarms/prompts/**" | ||
structs: | ||
- changed-files: | ||
- any-glob-to-any-file: "swarms/structs/**" | ||
telemetry: | ||
- changed-files: | ||
- any-glob-to-any-file: "swarms/telemetry/**" | ||
tools: | ||
- changed-files: | ||
- any-glob-to-any-file: "swarms/tools/**" | ||
utils: | ||
- changed-files: | ||
- any-glob-to-any-file: "swarms/utils/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: autofix.ci | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: ["main"] | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
autofix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
- run: go install github.com/google/yamlfmt/cmd/yamlfmt@latest | ||
- run: yamlfmt . | ||
|
||
- uses: actions/setup-python@v5 | ||
- run: pip install ruff | ||
- run: ruff format . | ||
- run: ruff check --fix . | ||
|
||
- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.