Skip to content

ADDED: Test cases of the api and CI-CD pipeline #1

ADDED: Test cases of the api and CI-CD pipeline

ADDED: Test cases of the api and CI-CD pipeline #1

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test FastAPI Application
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
pytest test_main.py