pull/443/head
Wyatt Stanke 9 months ago
parent 393450078c
commit 2deab5d802
No known key found for this signature in database
GPG Key ID: CE6BA5FFF135536D

@ -1,3 +1,4 @@
---
# These are supported funding model platforms # These are supported funding model platforms
github: [kyegomez] github: [kyegomez]
# patreon: # Replace with a single Patreon username # patreon: # Replace with a single Patreon username

@ -1,3 +1,4 @@
---
name: "Init Environment" name: "Init Environment"
description: "Initialize environment for tests" description: "Initialize environment for tests"
runs: runs:
@ -20,7 +21,8 @@ runs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: .venv path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{
hashFiles('**/poetry.lock') }}
- name: Install dependencies - name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --with test --with dev --all-extras run: poetry install --no-interaction --no-root --with test --with dev --all-extras

@ -1,3 +1,4 @@
---
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates # https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
version: 2 version: 2
updates: updates:

@ -1,3 +1,4 @@
---
# this is a config file for the github action labeler # this is a config file for the github action labeler
# Add 'label1' to any changes within 'example' folder or any subfolders # Add 'label1' to any changes within 'example' folder or any subfolders

@ -1,3 +1,4 @@
---
name: "Setup environment" name: "Setup environment"
description: "Setup environment for the CI" description: "Setup environment for the CI"
runs: runs:
@ -13,7 +14,8 @@ runs:
poetry config virtualenvs.in-project true --local poetry config virtualenvs.in-project true --local
shell: bash shell: bash
- uses: actions/cache@v3 - uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file name: Define a cache for the virtual environment
file
with: with:
path: ./.venv path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }} key: venv-${{ hashFiles('poetry.lock') }}

@ -1,3 +1,4 @@
---
name: release name: release
on: on:
pull_request: pull_request:

@ -1,3 +1,4 @@
---
# This workflow uses actions that are not certified by GitHub. # This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by # They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support # separate terms of service, privacy policy, and support
@ -19,7 +20,7 @@ on:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: ["master"] branches: ["master"]
schedule: schedule:
- cron: '18 23 * * 4' - cron: "18 23 * * 4"
permissions: permissions:
contents: read contents: read
jobs: jobs:
@ -38,7 +39,8 @@ jobs:
- name: Run Codacy Analysis CLI - name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@33d455949345bddfdb845fba76b57b70cc83754b uses: codacy/codacy-analysis-cli-action@33d455949345bddfdb845fba76b57b70cc83754b
with: with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository # Check https://github.com/codacy/codacy-analysis-cli#project-token to
# get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations # You can also omit the token and run the tools that support default configurations
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true verbose: true

@ -1,3 +1,4 @@
---
# For most projects, this workflow file will not need changing; you simply need # For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository. # to commit it to your repository.
# #
@ -26,7 +27,9 @@ jobs:
# - https://gh.io/supported-runners-and-hardware-resources # - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners # - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements. # Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} runs-on:
${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest'
}}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions: permissions:
actions: read actions: read
@ -54,13 +57,9 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below) # If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild - name: Autobuild
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality # queries: security-extended,security-and-quality
uses: github/codeql-action/autobuild@v3 uses: github/codeql-action/autobuild@v3
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# - run: | # - run: |
# echo "Run, Build Application using script" # echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh # ./location_of_script_within_repo/buildscript.sh
@ -68,6 +67,8 @@ jobs:
# Command-line programs to run using the OS shell. # Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
uses: github/codeql-action/analyze@v3 uses: github/codeql-action/analyze@v3
with: with:
category: "/language:${{matrix.language}}" category: "/language:${{matrix.language}}"

@ -1,3 +1,4 @@
---
name: Run pytest name: Run pytest
on: on:
schedule: schedule:

@ -1,3 +1,4 @@
---
name: Docs WorkAgent name: Docs WorkAgent
on: on:
push: push:

@ -1,3 +1,4 @@
---
# This workflow will triage pull requests and apply a label based on the # This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request. # paths that are modified in the pull request.
# #

@ -1,3 +1,4 @@
---
name: Lint name: Lint
on: [push, pull_request] # yamllint disable-line rule:truthy on: [push, pull_request] # yamllint disable-line rule:truthy
jobs: jobs:

@ -1,3 +1,4 @@
---
name: "PR Labeler" name: "PR Labeler"
on: on:
pull_request_target: pull_request_target:

@ -1,3 +1,4 @@
---
name: Pull Request Checks name: Pull Request Checks
on: on:
pull_request: pull_request:
@ -14,7 +15,8 @@ jobs:
with: with:
python-version: 3.x python-version: 3.x
- name: Install dependencies - name: Install dependencies
run: "pip install -r requirements.txt\npip install swarms\npip install pytest \n" run: "pip install -r requirements.txt\npip install swarms\npip install pytest
\n"
- name: Run tests and checks - name: Run tests and checks
run: | run: |
pytest pytest

@ -1,3 +1,4 @@
---
name: readthedocs/actions name: readthedocs/actions
on: on:
pull_request_target: pull_request_target:

@ -1,3 +1,4 @@
---
name: Pylint name: Pylint
on: [push] on: [push]
jobs: jobs:

@ -1,3 +1,4 @@
---
# This workflow will install Python dependencies, run tests and lint with a single version of Python # This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

@ -1,3 +1,4 @@
---
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

@ -1,3 +1,4 @@
---
name: Upload Python Package name: Upload Python Package
on: # yamllint disable-line rule:truthy on: # yamllint disable-line rule:truthy
release: release:

@ -1,3 +1,4 @@
---
name: Run Examples Script name: Run Examples Script
on: on:
push: push:

@ -1,3 +1,4 @@
---
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
# #
# You can adjust the behavior by modifying this file. # You can adjust the behavior by modifying this file.

@ -1,3 +1,4 @@
---
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
# #
# You can adjust the behavior by modifying this file. # You can adjust the behavior by modifying this file.
@ -24,19 +25,23 @@ jobs:
close-issue-reason: not_planned close-issue-reason: not_planned
any-of-labels: "status:awaiting user response,status:more data needed" any-of-labels: "status:awaiting user response,status:more data needed"
stale-issue-message: > stale-issue-message: >
Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs. Marking this issue as stale since it has been open for 14 days with no
activity. This issue will be closed if no further activity occurs.
close-issue-message: > close-issue-message: >
This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. Thanks! This issue was closed because it has been inactive for 28 days. Please
post a new issue if you need further assistance. Thanks!
days-before-pr-stale: 14 days-before-pr-stale: 14
days-before-pr-close: 14 days-before-pr-close: 14
stale-pr-label: "status:stale" stale-pr-label: "status:stale"
stale-pr-message: > stale-pr-message: >
Marking this pull request as stale since it has been open for 14 days with no activity. This PR will be closed if no further activity occurs. Marking this pull request as stale since it has been open for 14 days
with no activity. This PR will be closed if no further activity occurs.
close-pr-message: > close-pr-message: >
This pull request was closed because it has been inactive for 28 days. Please open a new pull request if you need further assistance. Thanks! This pull request was closed because it has been inactive for 28 days.
Please open a new pull request if you need further assistance. Thanks!
# Label that can be assigned to issues to exclude them from being marked as stale # Label that can be assigned to issues to exclude them from being marked as stale
exempt-issue-labels: 'override-stale' exempt-issue-labels: 'override-stale'

@ -1,3 +1,4 @@
---
name: test name: test
on: on:
push: push:
@ -27,7 +28,10 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
poetry-version: "1.4.2" poetry-version: "1.4.2"
cache-key: ${{ matrix.test_type }} 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 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 - name: Run ${{matrix.test_type}} tests
run: | run: |
if [ "${{ matrix.test_type }}" == "core" ]; then if [ "${{ matrix.test_type }}" == "core" ]; then

@ -1,3 +1,4 @@
---
# Notebook-related checks # Notebook-related checks
name: Presubmit checks name: Presubmit checks

@ -1,3 +1,4 @@
---
name: Unit Tests name: Unit Tests
on: on:
push: push:

@ -1,3 +1,4 @@
---
name: build name: build
on: on:
push: push:

@ -1,3 +1,4 @@
---
name: Welcome WorkAgent name: Welcome WorkAgent
on: on:
issues: issues:
@ -13,5 +14,7 @@ jobs:
- uses: actions/first-interaction@v1.3.0 - uses: actions/first-interaction@v1.3.0
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap." issue-message: "Hello there, thank you for opening an Issue ! 🙏🏻 The team
pr-message: "Hello there, thank you for opening an PR ! 🙏🏻 The team was notified and they will get back to you asap." was notified and they will get back to you asap."
pr-message: "Hello there, thank you for opening an PR ! 🙏🏻 The team was
notified and they will get back to you asap."

@ -1,3 +1,4 @@
---
repos: repos:
- repo: https://github.com/ambv/black - repo: https://github.com/ambv/black
rev: 22.3.0 rev: 22.3.0

@ -1,3 +1,4 @@
---
version: 2 version: 2
build: build:
os: ubuntu-22.04 os: ubuntu-22.04

@ -1,3 +1,5 @@
---
formatter: formatter:
type: basic
include_document_start: true include_document_start: true
max_line_length: 80 max_line_length: 80

@ -0,0 +1,3 @@
rules:
line-length:
max: 127

@ -1,3 +1,4 @@
---
site_name: Swarms Docs site_name: Swarms Docs
plugins: plugins:
- glightbox - glightbox

Loading…
Cancel
Save