parent
3df5685dee
commit
f7b00466e2
@ -1,3 +1,5 @@
|
||||
name: autofix.ci
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
@ -1,23 +0,0 @@
|
||||
---
|
||||
name: Pull Request Checks
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Install dependencies
|
||||
run: "pip install -r requirements.txt\npip install swarms\npip install pytest
|
||||
\n"
|
||||
- name: Run tests and checks
|
||||
run: |
|
||||
pytest
|
||||
pylint swarms
|
@ -1,17 +0,0 @@
|
||||
---
|
||||
name: readthedocs/actions
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
paths:
|
||||
- "docs/**"
|
||||
permissions:
|
||||
pull-requests: write
|
||||
jobs:
|
||||
pull-request-links:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: readthedocs/actions/preview@v1
|
||||
with:
|
||||
project-slug: swarms
|
@ -1,27 +0,0 @@
|
||||
---
|
||||
name: Upload Python Package
|
||||
on: # yamllint disable-line rule:truthy
|
||||
release:
|
||||
types: [published]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install build
|
||||
- name: Build package
|
||||
run: python -m build
|
||||
- name: Publish package
|
||||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
@ -1,39 +0,0 @@
|
||||
---
|
||||
name: Run Examples Script
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
schedule:
|
||||
# Runs at 3:00 AM UTC every day
|
||||
- cron: "0 3 * * *"
|
||||
jobs:
|
||||
run-examples:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v4
|
||||
- name: Install Poetry
|
||||
uses: snok/install-poetry@v1
|
||||
- name: Setup a local virtual environment
|
||||
run: |
|
||||
poetry config virtualenvs.create true --local
|
||||
poetry config virtualenvs.in-project true --local
|
||||
- uses: actions/cache@v3
|
||||
name: Define a cache for the virtual environment
|
||||
file
|
||||
with:
|
||||
path: ./.venv
|
||||
key: venv-${{ hashFiles('poetry.lock') }}
|
||||
- name: Install the project dependencies
|
||||
run: poetry install
|
||||
- name: Install OpenCV
|
||||
run: sudo apt-get install python3-opencv
|
||||
- name: Enter the virtual environment
|
||||
run: source $VENV
|
||||
- name: Make Script Executable and Run
|
||||
run: |-
|
||||
chmod +x ./scripts/run_examples.sh
|
||||
./scripts/run_examples.sh
|
Loading…
Reference in new issue