From 334ce9dad880bcdafd9df0f56f3b07c1a5305f12 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sun, 1 Aug 2021 17:30:36 +0300 Subject: [PATCH] Basic workflow for the blind tests + linting flake8 errors on both passes on ubuntu-latest, python3.8, pylintrc is tox.ini --- .github/workflows/test.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8a28a4a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,41 @@ +name: Blind Test + +on: push + +jobs: + default: + + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + python-version: [3.8] + include: + - os: ubuntu-latest + python-version: 3.9 + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install python dependencies + run: | + python -m pip install --upgrade pip + pip install wheel + pip install flake8 pylint + pip install -r requirements.txt + python setup.py install + - name: Lint + if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }} + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 minode --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 minode --count --statistics + pylint minode --exit-zero --rcfile=tox.ini + - name: Test + run: | + export PYTHONWARNINGS=all + python -bm tests