Skip to content

Add Github actions workflow for the product api tests. #1

Add Github actions workflow for the product api tests.

Add Github actions workflow for the product api tests. #1

name: CI
on:
push:
paths:
- 'src/product_api/**'
pull_request:
paths:
- 'src/product_api/**'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/product_api
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pytest