-
Notifications
You must be signed in to change notification settings - Fork 47
45 lines (38 loc) · 1.03 KB
/
auto_tests.yml
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
name: Auto Tests
on: push
jobs:
server_tests:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:14
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5435:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install deps
run: |
cd server
sudo apt-get -y install libsqlite3-mod-spatialite
pip3 install pipenv==2024.0.1
pipenv install --dev --verbose
- name: Run tests
run: |
cd server
pipenv run pytest -v --cov=mergin --cov-report=lcov mergin/tests
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
base-path: server
format: lcov