Skip to content

---

--- #328

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
tests:
strategy:
fail-fast: true
matrix:
python-version: ["3.10"]
poetry-version: ["1.2.2"]
runs-on: ubuntu-latest
env:
# https://github.com/actions/runner-images/issues/6185
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
steps:
- uses: actions/checkout@v3
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Install dependencies
run: poetry install
- name: Black formatter
run: poetry run black --check --diff --color .
- name: Isort formatter
run: poetry run isort --check --diff .
- name: Pyright static type checks
run: poetry run pyright .
- name: Install pytest github annotation plugin
run: poetry run pip install pytest-github-actions-annotate-failures
- name: "Pytest: unit tests"
run: poetry run pytest --cov={autoagora_agents,environments} --cov-report=lcov
- name: Coveralls
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage.lcov