-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (45 loc) · 1.28 KB
/
backend.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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