-
Notifications
You must be signed in to change notification settings - Fork 16
49 lines (47 loc) · 1.28 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
41
42
43
44
45
46
47
48
49
name: Tests
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the webui container
run: docker-compose -f docker-compose.yml build --pull
working-directory: ./tests
- name: Run test suite
run: docker-compose -f docker-compose.yml run --rm webui pytest ./tests.py -vv
working-directory: ./tests
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install requirements
run: pip install -r requirements.txt
working-directory: ./tests
- name: Run black and flake8
run: |
black --check --diff ./
flake8
working-directory: ./tests
commit-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install gitlint
run: pip install gitlint
- name: Run gitlint
run: gitlint --contrib contrib-title-conventional-commits --ignore B1,B5,B6 lint