-
Notifications
You must be signed in to change notification settings - Fork 43
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 #46 from swarmauri/dev-py-0.4
v0.4
- Loading branch information
Showing
310 changed files
with
6,578 additions
and
4,786 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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# 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 | ||
|
||
name: Test Staging | ||
|
||
on: | ||
push: | ||
branches: [ "staging", "dev-py-0.4" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10"] | ||
|
||
env: | ||
# Define your environment variables here | ||
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} | ||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }} | ||
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | ||
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
PERPLEXITY_API_KEY: ${{ secrets.PERPLEXITY_API_KEY }} | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install flake8 pytest | ||
python -m pip install textblob | ||
python -m textblob.download_corpora | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Build package | ||
run: | | ||
python -m pip install build | ||
python -m build | ||
- name: Install package | ||
run: | | ||
LATEST_WHL=$(ls dist/*.whl | sort -V | tail -n 1) | ||
python -m pip install "$LATEST_WHL"[full] | ||
- name: Get pip freeze | ||
run: | | ||
pip freeze | ||
- name: Run tests | ||
continue-on-error: true | ||
run: | | ||
pytest -v --junitxml=results.xml | ||
- name: Output test results for debugging | ||
run: | | ||
cat results.xml | ||
- name: Classify test results | ||
run: | | ||
python tests/classify_results.py results.xml | ||
continue-on-error: false | ||
|
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 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,22 +1,29 @@ | ||
__version__ = "0.3.2.dev1" | ||
__version__ = "0.4.0" | ||
__long_desc__ = """ | ||
# swarmaURI sdk | ||
This repository includes core interfaces, standard ABCs, and standard concrete references of the SwarmaURI Framework. | ||
## Core | ||
- ABCs | ||
- Utilities | ||
- Core Interfaces | ||
## Standard | ||
- Base Classes | ||
- Mixins | ||
- Concrete Classes | ||
## Community | ||
- Concrete Classes that utilize third party plug-ins | ||
## Experimental | ||
- Tools in development | ||
- Components in development | ||
# Features | ||
- Polymorphism | ||
- Discriminated Unions | ||
- Serialization | ||
- Intensional and Extensional Programming | ||
""" |
Oops, something went wrong.