Skip to content

Add product search ednpoint and database design link #18

Add product search ednpoint and database design link

Add product search ednpoint and database design link #18

Workflow file for this run

name: CI Pipeline
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Create .env file
run: |
echo "SECRET_KEY=qp6_snqe9&ztum3lju!pj8%aau&xgm@coid4px5bvhi65w0&s$" >> .env
echo "DEBUG=True" >> .env
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
# Export environment variables safely using envsubst
export $(grep -v '^#' .env | xargs -d '\n')
pytest
env:
ENV_FILE_PATH: .env