forked from fetchai/cosmpy
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (71 loc) · 1.83 KB
/
workflow.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
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
name: Checks and Tests
on:
push:
branches:
- develop
- master
pull_request:
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]
timeout-minutes: 30
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox==3.24.1
- name: Code style check
run: |
tox -e black-check
tox -e isort-check
tox -e flake8
tox -e vulture
- name: Security check
run: tox -e bandit
- name: Safety check
run: tox -e safety
- name: Static type check
run: tox -e mypy
# - name: Pylint check
# run: tox -e pylint
- name: License check
run: tox -e liccheck
- name: Copyright check
run: tox -e copyright-check
- name: Manifest check
run: tox -e check-manifest
- name: Tests and coverage
# Run full set of tests for Linux and unit tests only for other platforms
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
tox -e test
else
tox -e test-unit
fi
shell: bash
- name: Show coverage report
run: tox -e coverage-report
spell-check:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: rojopolis/[email protected]
with:
config_path: .spellcheck.yml
markdown-link-check:
name: Broken Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.md-link-check.json'