-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (51 loc) · 2.13 KB
/
python.yaml
File metadata and controls
52 lines (51 loc) · 2.13 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
name: Python
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@master
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }} # Version range or exact version of a Python version to use, using semvers version range syntax.
# architecture: 'x64' # (x64 or x86)
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip setuptools wheel build_utils
# - name: Lint with flake8
# run: |
# pip install flake8
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install Poetry
uses: dschep/install-poetry-action@v1.3
# with:
# version: 1.0.0b3
- name: Turn off Virtualenvs
run: poetry config virtualenvs.create false
- name: Install packages
run: poetry install
- name: Run PyTest
run: poetry run pytest
# - name: Run mypy
# run: poetry run mypy pyservos
# - name: nosetests
# run: |
# pip install nose
# cd python
# python -m pip install -e .
# cd tests
# nosetests -vs test.py
# - name: Python Style Checker
# uses: andymckay/pycodestyle-action@0.1.3