55 types : [created]
66
77jobs :
8- deploy :
8+ flake8 :
99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v2
@@ -16,12 +16,25 @@ jobs:
1616 - name : Install dependencies
1717 run : |
1818 python -m pip install --upgrade pip
19- pip install twine flake8
19+ pip install flake8
2020 - name : Lint with flake8 for syntax errors
2121 run : |
2222 pip install flake8
2323 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
2424 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
25+ manylinux :
26+ runs-on : ubuntu-latest
27+ needs : flake8
28+ steps :
29+ - uses : actions/checkout@v2
30+ - name : Set up Python
31+ uses : actions/setup-python@v1
32+ with :
33+ python-version : 3.8
34+ - name : Install dependencies
35+ run : |
36+ python -m pip install --upgrade pip
37+ pip install twine
2538 - name : Build manylinux Python wheels
2639 uses : RalfG/python-wheels-manylinux-build@v0.2.2-manylinux2010_x86_64
2740 with :
3649 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
3750 run : |
3851 twine upload wheelhouse/*-manylinux*.whl
52+
53+ build-windows :
54+ runs-on : windows-latest
55+ needs : flake8
56+ strategy :
57+ matrix :
58+ python : ['3.6','3.7','3.8']
59+ steps :
60+ - uses : actions/checkout@v2
61+ - uses : goanpeca/action-setup-conda@v1
62+ with :
63+ python-version : ${{ matrix.python }}
64+ activate-environment : loop
65+ - name : Installing dependencies
66+ shell : bash -l {0}
67+ run : |
68+ python --version
69+ pip install -r requirements.txt
70+ conda info
71+ conda list
72+ - name : Building Loop wheel and installing
73+ shell : bash -l {0}
74+ run : |
75+ python setup.py bdist_wheel
76+ python setup.py bdist
77+ - name : Publish wheels to PyPI
78+ env :
79+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
80+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
81+ shell : bash -l {0}
82+ run : |
83+ pip install twine
84+ twine upload dist/*
85+
0 commit comments