-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 998 Bytes
/
Copy pathtest.yaml
File metadata and controls
40 lines (39 loc) · 998 Bytes
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: Run tests
on:
pull_request:
push:
branches:
- main
jobs:
build_install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo python setup.py install
- run: nginx-static-analysis --help
unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- run: pip install -r requirements/development.txt
- run: coverage run -m pytest
- run: coverage report
- run: coverage xml -o ./coverage.xml
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
integration_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run general testsuite
run: ./runtests.sh
shell: bash
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0