Skip to content

Commit

Permalink
ci(workflow): test
Browse files Browse the repository at this point in the history
  • Loading branch information
valeeraZ committed Feb 12, 2024
1 parent 3576246 commit 63435f4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run Unit Tests

on: [push]

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
- name: Report coverage
run: |
poetry run coverage report -m

0 comments on commit 63435f4

Please sign in to comment.