This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # name: CheckPackage | |
| # 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 mdh | |
| # # - 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 |