-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 993 Bytes
/
ci.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
name: Mac/Ubuntu Python 3.7 Unit Tests
on:
push:
branches-ignore:
- development
- master
- gh-pages
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install pip dependencies
# Need to explicitly install requirementslib==1.6.9 here
# so that later isort step works
run: |
python -m pip install --upgrade pip setuptools wheel requirementslib==1.6.9
python -m pip install -r requirements.txt
- name: Run unit tests
run: python -m unittest
- name: Isort
uses: isort/isort-action@v1.0.0
- name: Flake8
run: flake8
- name: Autopep8
run: autopep8 --in-place --aggressive --recursive machine_common_sense