forked from async-worker/aiologger
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (54 loc) · 1.63 KB
/
main.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
name: main
on:
push:
branches:
- main
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-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==20.2.3 pipenv==2020.8.13
- name: pipenv install --dev
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.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install pip/pipenv
run: pip install -U pip==20.2.3 pipenv==2020.8.13
- name: pipenv install --dev
run: pipenv install --system --deploy --ignore-pipfile --dev
- name: pipenv run lint
run: pipenv run lint
- name: pipenv run fmt-check
run: pipenv run fmt-check