-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (33 loc) · 968 Bytes
/
build.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
name: Build
on: push
jobs:
Build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
uses: actions/setup-python@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip pipenv
pipenv sync
pipenv run pip install pytest
- name: Run Tests
run: |
pipenv run pytest
pipenv sync --dev
pipenv run pytest
pipenv run flake8 hutils tests setup.py
- name: Check code style
if: matrix.python-version == 3.9
run: |
pipenv run flake8 .
pipenv run isort --check .
pipenv run black -l 120 --check .