Skip to content

test(cov): fix codecov #15

test(cov): fix codecov

test(cov): fix codecov #15

Workflow file for this run

name: Run Unit Tests
on: [push]
env:
OPENAI_API_KEY: "fake_key"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests with coverage
run: |
poetry run pytest --cov=api --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
slug: valeeraZ/semantic-search