Skip to content

Continuous Integration finished #15

Continuous Integration finished

Continuous Integration finished #15

on: [push, pull_request]
jobs:
CI:
environment:
name: Testing
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
ALGORITHM: ${{ secrets.ALGORITHM }}
ACCESS_TOKEN_EXPIRE_MINUTES: ${{ secrets.ACCESS_TOKEN_EXPIRE_MINUTES }}
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD}}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: List repository files
run: |
ls ${{ github.workspace }}
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: upgrade pip
run: python -m pip install --upgrade pip
- name: install all dependencies
run: pip install -r requirements.txt
- name: Testing with pytest
run: pytest -v -s