YAMLLint now passes

pull/387/head
Wyatt Stanke 1 year ago
parent b9b750767c
commit f0c4dfc811
No known key found for this signature in database
GPG Key ID: CE6BA5FFF135536D

@ -1,3 +1,4 @@
---
name: "Init Environment"
description: "Initialize environment for tests"
runs:

@ -1,3 +1,4 @@
---
name: release
on:
@ -7,7 +8,7 @@ on:
branches:
- master
paths:
- 'pyproject.toml'
- "pyproject.toml"
env:
POETRY_VERSION: "1.4.2"

@ -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
@ -20,7 +21,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
@ -28,9 +29,12 @@ permissions:
jobs:
codacy-security-scan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
# for actions/checkout to fetch code
contents: read
# for github/codeql-action/upload-sarif to upload SARIF results
security-events: write
# only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
actions: read
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
@ -42,7 +46,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.
#
@ -18,7 +19,7 @@ on:
# The branches below must be a subset of the branches above
branches: ["master"]
schedule:
- cron: '33 12 * * 5'
- cron: "33 12 * * 5"
jobs:
analyze:
@ -38,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
language: ["python"]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
@ -57,10 +58,10 @@ jobs:
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# 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
# 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
# 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

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

@ -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.
#
@ -10,7 +11,6 @@ on: [pull_request_target]
jobs:
label:
runs-on: ubuntu-latest
permissions:
contents: read

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

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

@ -1,3 +1,4 @@
---
name: Pull Request Checks
on:

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

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

@ -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
@ -14,7 +15,6 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
steps:

@ -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
@ -11,7 +12,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false

@ -1,6 +1,7 @@
---
name: Upload Python Package
on: # yamllint disable-line rule:truthy
on:
release:
types: [published]
@ -9,7 +10,6 @@ permissions:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip

@ -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.
@ -7,11 +8,10 @@ name: Mark stale issues and pull requests
on:
schedule:
- cron: '26 12 * * *'
- cron: "26 12 * * *"
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
@ -21,7 +21,7 @@ jobs:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
stale-issue-message: "Stale issue message"
stale-pr-message: "Stale pull request message"
stale-issue-label: "no-issue-activity"
stale-pr-label: "no-pr-activity"

@ -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.
@ -8,11 +9,10 @@ name: Mark stale issues and pull requests
on:
schedule:
# Scheduled to run at 1.30 UTC everyday
- cron: '30 1 * * *'
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
@ -43,7 +43,6 @@ jobs:
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'
exempt-issue-labels: "override-stale"
# Label that can be assigned to PRs to exclude them from being marked as stale
exempt-pr-labels: "override-stale"

@ -1,3 +1,4 @@
---
name: test
on:
@ -30,8 +31,7 @@ jobs:
python-version: ${{ matrix.python-version }}
poetry-version: "1.4.2"
cache-key: ${{ matrix.test_type }}
install-command:
if [ "${{ matrix.test_type }}" == "core" ]; then
install-command: if [ "${{ matrix.test_type }}" == "core" ]; then
echo "Running core tests, installing dependencies with poetry..."
poetry install
else
@ -46,9 +46,8 @@ jobs:
make extended_tests
fi
shell: bash
name: Python ${{ matrix.python-version }} ${{ matrix.test_type }}
steps:
- uses: actions/checkout@v4
- name: Python ${{ matrix.python-version }} ${{ matrix.test_type }}
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: "./.github/actions/poetry_setup"
with:

@ -1,3 +1,4 @@
---
# Notebook-related checks
name: Presubmit checks
@ -19,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: "3.11"
- name: Run tests
run: |
python --version
@ -32,7 +33,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
- name: Run tests
run: |
python --version
@ -45,7 +46,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: "3.9"
- name: Run tests
run: |
python --version
@ -58,7 +59,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
- name: Run pytype
run: |
python --version
@ -72,7 +73,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: "3.11"
- name: Check format
run: |
python --version

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

@ -1,3 +1,4 @@
---
name: build
on:
@ -7,9 +8,7 @@ on:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
@ -18,7 +17,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: "3.9"
- name: Install dependencies
run: |

@ -1,3 +1,4 @@
---
name: Welcome WorkAgent
on:
@ -15,5 +16,9 @@ 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,10 +1,11 @@
---
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.255'
rev: "v0.0.255"
hooks:
- id: ruff
args: [----unsafe-fixes]

@ -1,3 +1,4 @@
---
version: 2
build:

@ -0,0 +1,9 @@
---
extends: default
rules:
line-length:
max: 127
truthy:
# GitHub Actions
check-keys: false

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

Loading…
Cancel
Save