Skip to content

Merge branch 'LVivona/feature/mongo-backend-setup.yaml' of https://gi… #5

Merge branch 'LVivona/feature/mongo-backend-setup.yaml' of https://gi…

Merge branch 'LVivona/feature/mongo-backend-setup.yaml' of https://gi… #5

Workflow file for this run

name: Python Tests
on:
push:
branches:
- LVivona/feature/mongo-backend-setup.yaml
pull_request:
workflow_dispatch:
env:
API_V1_STR: ${{ secrets.API_V1_STR }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
ACCESS_TOKEN_EXPIRE_MINUTES: '36000'
ENVIRONMENT: 'staging'
BACKEND_CORS_ORIGINS: ${{ vars.BACKEND_CORS_ORIGINS }}
PROJECT_NAME: ${{ vars.PROJECT_NAME }}
MONGODB_NAME: ${{ vars.MONGODB_NAME }}
MONGODB_DB_NAME: ${{ vars.MONGODB_DB_NAME }}
MONGODB_USER: ${{ vars.MONGODB_USER }}
MONGODB_PASSWORD: ${{ vars.MONGODB_PASSWORD }}
MONGODB_HOST: ${{ vars.MONGODB_HOST }}
MONGODB_PROTOCOL: ${{ vars.MONGODB_PROTOCOL }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Display Python version
run: |
python --version
pip list
- name: Run tests
run: |
make test