-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.41 KB
/
tests.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
name: tests
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
TEST_AUTH_PASSWORD: ${{ secrets.TEST_AUTH_PASSWORD }}
TEST_AUTH_USER: ${{ secrets.TEST_AUTH_USER }}
TEST_AUTH_USER_SUB: ${{ secrets.TEST_AUTH_USER_SUB }}
AUTH0_AUDIENCE: ${{ vars.AUTH0_AUDIENCE }}
AUTH0_AUTHORIZE_URL: ${{ vars.AUTH0_AUTHORIZE_URL }}
AUTH0_CONNECTION: ${{ vars.AUTH0_CONNECTION }}
AUTH0_ISSUER: ${{ vars.AUTH0_ISSUER }}
AUTH0_JWKS_URI }: ${{ vars.AUTH0_JWKS_URI }}
AUTH0_REGISTER_URL: ${{ vars.AUTH0_REGISTER_URL }}
TEST_DB_URL : ${{ vars.TEST_DB_URL }}
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: costy_test
ports: [ '5432:5432' ]
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[ci-tests]
- name: Test with pytest
run: |
pytest tests