-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 1.06 KB
/
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
name: Tests
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the project
run: |
echo "UID=$(id --user)" > .env
docker-compose up -d --build
- name: Lint the code
run: |
docker-compose run --rm interval black --check .
docker-compose run --rm interval flake8
- name: Run pytest
run: |
docker-compose run --rm interval wait-for-it.sh db:5432
docker-compose run --rm interval wait-for-it.sh caluma:8000
docker-compose run --rm interval pytest --no-cov-on-fail --cov
gitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: Install gitlint
run: pip install gitlint
- name: Run gitlint
run: gitlint --contrib contrib-title-conventional-commits