From 6d4baaccb9c37d06444dcd949e97279cedb693ff Mon Sep 17 00:00:00 2001 From: Corvince <13568919+Corvince@users.noreply.github.com> Date: Wed, 9 Oct 2019 21:45:39 +0200 Subject: [PATCH 1/3] Try GitHub Actions --- pythonpackage.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pythonpackage.yml diff --git a/pythonpackage.yml b/pythonpackage.yml new file mode 100644 index 00000000000..6ac04c94c38 --- /dev/null +++ b/pythonpackage.yml @@ -0,0 +1,34 @@ +name: Python package + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.5, 3.6, 3.7] + + 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 -r requirements.txt + - 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: Test with pytest + run: | + pip install pytest + pytest From 03da17fab8ab39a767587239431dd1b063fa531b Mon Sep 17 00:00:00 2001 From: Corvince <13568919+Corvince@users.noreply.github.com> Date: Wed, 4 Mar 2020 21:08:35 +0100 Subject: [PATCH 2/3] Revert "Try GitHub Actions" This reverts commit d3cad44bcfd1ec706107878493ee37c565ac3f13. --- pythonpackage.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 pythonpackage.yml diff --git a/pythonpackage.yml b/pythonpackage.yml deleted file mode 100644 index 6ac04c94c38..00000000000 --- a/pythonpackage.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Python package - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - max-parallel: 4 - matrix: - python-version: [3.5, 3.6, 3.7] - - 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 -r requirements.txt - - 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: Test with pytest - run: | - pip install pytest - pytest From 7c32617d967aa36d4fa695787867e23f0af5ea50 Mon Sep 17 00:00:00 2001 From: Corvince <13568919+Corvince@users.noreply.github.com> Date: Sat, 9 May 2020 19:50:48 +0200 Subject: [PATCH 3/3] Update test_examples.py --- tests/test_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_examples.py b/tests/test_examples.py index e715b69350b..608b106837b 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -60,4 +60,4 @@ def test_examples(self): server.server.render_model() Model = getattr(mod, classcase(example)) model = Model() - (model.step() for _ in range(100)) + [model.step() for _ in range(100)]