Update backend.yaml #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Tests | |
on: | |
push: | |
branches: | |
- LVivona/feature/mongo-backend-setup.yaml | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Debug environment variables | |
env: | |
API_V1_STR: ${{ secrets.API_V1_STR }} | |
run: | | |
echo "API_V1_STR is set: ${{ secrets.API_V1_STR != '' }}" | |
- 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 | |
env: | |
API_V1_STR: ${{ secrets.API_V1_STR }} | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
ACCESS_TOKEN_EXPIRE_MINUTES: '36000' | |
ENVIRONMENT: 'staging' | |
BACKEND_CORS_ORIGINS: ${{ secrets.BACKEND_CORS_ORIGINS }} | |
PROJECT_NAME: ${{ secrets.PROJECT_NAME }} | |
MONGODB_NAME: ${{ secrets.MONGODB_NAME }} | |
MONGODB_DB_NAME: ${{ secrets.MONGODB_DB_NAME }} | |
MONGODB_USER: ${{ secrets.MONGODB_USER }} | |
MONGODB_PASSWORD: ${{ secrets.MONGODB_PASSWORD }} | |
MONGODB_HOST: ${{ secrets.MONGODB_HOST }} | |
MONGODB_PROTOCOL: ${{ secrets.MONGODB_PROTOCOL }} | |
MONGODB_OPTIONS: ${{ secrets.MONGODB_OPTIONS }} | |
run: | | |
make test |