-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.4 KB
/
buildtest.yml
File metadata and controls
60 lines (55 loc) · 1.4 KB
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
name: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
code-quality:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Linting
run: |
python -m pip install --upgrade pip
pip install flake8
flake8 pycpp
docs-quality:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Docs
run: |
python -m pip install --upgrade pip
pip install pydocstyle
pydocstyle pycpp
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
python-version: ['3.9', '3.10']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Install armadillo
run:
brew install armadillo
- name: init carma git-submodule
run: git submodule update --init
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install in Development mode
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests
run: pytest pycpp