Skip to content

Commit

Permalink
Merge pull request #10 from tssala23/tests-workflow
Browse files Browse the repository at this point in the history
Add Workflow for Unit tests
  • Loading branch information
tssala23 authored Feb 6, 2024
2 parents 293bbd1 + e454a60 commit e3513b6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: run-tests

on: [ push, pull_request ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4

- name: Set up Python 3.11.6
uses: actions/setup-python@v5
with:
python-version: 3.11.6

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
pip install -r requirements.txt
- name: Run unit test
run: |
pytest --cov=app --cov-report=html

0 comments on commit e3513b6

Please sign in to comment.