Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Add missing defaults #180

Add missing defaults

Add missing defaults #180

Workflow file for this run

name: CI
on: pull_request
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
- name: install dependencies
run: poetry install --with dev
- name: Run flake8 Check
run: poetry run flake8 .
- name: Run mypy check
run: poetry run mypy .
run-tests:
name: Run tests
runs-on: ubuntu-latest
needs: run-linters
strategy:
matrix:
python-version: [3.9, '3.10', 3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
- name: install dependencies
run: poetry install --with dev --all-extras
- name: Run unit tests
run: poetry run pytest --html=report.html --self-contained-html tests/unit
- name: Run system tests
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PINECONE_ENVIRONMENT: eu-west1-gcp
run: poetry run pytest -n 3 --dist loadscope --html=report_system.html --self-contained-html tests/system
- name: upload pytest report.html
uses: actions/upload-artifact@v3
if: always()
with:
name: dataset-pytest-report-py${{ matrix.python-version }}
path: report*.html