-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (31 loc) · 900 Bytes
/
ci.yml
File metadata and controls
34 lines (31 loc) · 900 Bytes
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
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: '12'
postgresql db: 'whiteclaw_test'
postgresql user: 'postgres'
postgresql password: 'postgres'
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8.3'
- name: Install
run: |
pip install -r requirements.txt
- name: Test
run: |
pytest -vv
env:
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }}
FLASK_ENV: 'test'
LOG_CONFIG_PATH: '/home/runner/work/iit-backend/iit-backend/logging.cfg'
LOG_FILE_PATH: '/home/runner/work/iit-backend/iit-backend/logfile.log'