-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (31 loc) · 976 Bytes
/
ci.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
name: General CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: sudo apt-get update
- run: sudo sh bin/install.sh
- run: . venv/bin/activate && make lint
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: sudo apt-get update
- run: sudo make install
- run: sudo make install-extra
- run: |
sudo apt-get -y install postgresql postgresql-contrib
sudo systemctl start postgresql
sudo -u postgres psql -c "CREATE DATABASE sner_test"
sudo -u postgres psql -c "CREATE USER ${USER}"
mkdir -p /tmp/sner_test_var
- run: . venv/bin/activate && make coverage
- run: . venv/bin/activate && make test-extra