-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 878 Bytes
/
pytest.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
name: pytest
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update apt repositories
run: sudo apt -y update
- name: Install dependencies
run: sudo apt -y install libtool-bin valgrind postgresql python3-pytest python3-psycopg2
- name: Start PostgreSQL server
run: sudo systemctl start postgresql.service
- name: Create PostgreSQL user
run: sudo -u postgres createuser --superuser `whoami`
- name: Bootstrap project
run: ./bootstrap.sh
- name: Configure project
run: >
./configure
--enable-debug
--with-test-binary
--with-csv-module
--with-psql-module
- name: Compile project
run: make
- name: Run pytest
run: python3 -m pytest