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
github: [kyegomez]
# patreon: # Replace with a single Patreon username

@ -1,3 +1,4 @@
---
name: "Init Environment"
description: "Initialize environment for tests"
runs:
@ -20,7 +21,8 @@ runs:
uses: actions/cache@v3
with:
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
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
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
version: 2
updates:

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

@ -1,3 +1,4 @@
---
name: "Setup environment"
description: "Setup environment for the CI"
runs:
@ -13,7 +14,8 @@ runs:
poetry config virtualenvs.in-project true --local
shell: bash
- 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:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}

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

@ -1,3 +1,4 @@
---
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
@ -19,7 +20,7 @@ on:
# The branches below must be a subset of the branches above
branches: ["master"]
schedule:
- cron: '18 23 * * 4'
- cron: "18 23 * * 4"
permissions:
contents: read
jobs:
@ -38,7 +39,8 @@ jobs:
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@33d455949345bddfdb845fba76b57b70cc83754b
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
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true

@ -1,3 +1,4 @@
---
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
@ -26,7 +27,9 @@ jobs:
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# 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 }}
permissions:
actions: read
@ -54,13 +57,9 @@ jobs:
# 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)
- 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
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: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
@ -68,6 +67,8 @@ jobs:
# 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
# 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
with:
category: "/language:${{matrix.language}}"

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

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

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

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

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

@ -1,3 +1,4 @@
---
name: Pull Request Checks
on:
pull_request:
@ -14,7 +15,8 @@ jobs:
with:
python-version: 3.x
- 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
run: |
pytest

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

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

@ -1,3 +1,4 @@
---
# 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

@ -1,3 +1,4 @@
---
# 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

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

@ -1,3 +1,4 @@
---
name: Run Examples Script
on:
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.
#
# 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.
#
# You can adjust the behavior by modifying this file.
@ -24,19 +25,23 @@ jobs:
close-issue-reason: not_planned
any-of-labels: "status:awaiting user response,status:more data needed"
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: >
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-close: 14
stale-pr-label: "status:stale"
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: >
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
exempt-issue-labels: 'override-stale'

@ -1,3 +1,4 @@
---
name: test
on:
push:
@ -27,7 +28,10 @@ jobs:
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
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

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

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

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

@ -1,3 +1,4 @@
---
name: Welcome WorkAgent
on:
issues:
@ -13,5 +14,7 @@ jobs:
- uses: actions/first-interaction@v1.3.0
with:
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."
pr-message: "Hello there, thank you for opening an PR ! 🙏🏻 The team was notified and they will get back to you asap."
issue-message: "Hello there, thank you for opening an Issue ! 🙏🏻 The team
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:
- repo: https://github.com/ambv/black
rev: 22.3.0

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

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

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

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

Loading…
Cancel
Save