forked from async-worker/aiologger
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (65 loc) · 1.99 KB
/
pull-request.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: pull-request
on: pull_request
jobs:
tests:
name: unittests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [3.7, 3.8, 3.9, "3.10", 3.x]
steps:
- name: install {libxml2,libxslt}-dev
run: sudo apt-get install libxml2-dev libxslt-dev
- name: checkout
uses: actions/checkout@v2
- name: Install python ${{matrix.python}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python}}
- name: Install pip/pipenv
run: pip install -U pip pipenv
- name: Install aiologer
run: pipenv install --system --deploy --ignore-pipfile --dev
- name: pipenv run test
run: pipenv run test
- name: Coverage upload
if: ${{matrix.python == '3.8'}}
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
- name: Coverage Skipped
if: ${{matrix.python != '3.8'}}
run: echo "Coverage uploaded only on python 3.8 run"
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Install python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install pip/pipenv
run: pip install -U pip pipenv
- name: Install aiologer
run: pipenv install --system --deploy --ignore-pipfile --dev
- name: pipenv run lint
run: pipenv run lint
fmt-check:
name: fmt-check
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Install python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install pip/pipenv
run: pip install -U pip pipenv
- name: Install aiologer
run: pipenv install --system --deploy --ignore-pipfile --dev
- name: pipenv run fmt-check
run: pipenv run fmt-check