-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (43 loc) · 1.33 KB
/
python.yml
File metadata and controls
45 lines (43 loc) · 1.33 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
name: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v1
- 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
pip install cython
python setup.py develop
- name: pylint
if: ${{ matrix.python-version == '3.7' && matrix.os == 'ubuntu-latest' }}
run: |
pip install pylint==2.4.4
pylint finalfusion
- name: yapf
if: ${{ matrix.python-version == '3.7' && matrix.os == 'ubuntu-latest' }}
run: |
pip install yapf==0.28
yapf src/finalfusion -r --diff
yapf tests -r --diff
- name: mypy
if: ${{ matrix.python-version == '3.7' && matrix.os == 'ubuntu-latest' }}
run: |
pip install mypy==0.770
mypy --config-file=mypy.ini src/finalfusion
- name: Test with pytest
run: |
pip install pytest
pytest --doctest-modules
- name: Conversion tests
if: ${{ matrix.python-version == '3.7' }}
run: bash ./tests/integration/all.sh