From b5ac5462752bae0209f9fb255fe98b82e6016873 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 31 May 2022 09:12:26 +0200 Subject: [PATCH] CI: always use the latest version of pylint This makes it easier to reproduce issues locally. --- .github/workflows/ci-tests.yml | 7 +++++-- docs/develop/Development-Environment.md | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index a08a995f..4ce14f93 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -81,13 +81,16 @@ jobs: ubuntu: ${{ matrix.ubuntu }} - name: Install test prerequsites - run: sudo apt-get install -y -qq pylint python3-pytest python3-behave + run: sudo apt-get install -y -qq python3-pytest python3-behave if: matrix.ubuntu == 20 - name: Install test prerequsites - run: pip3 install pylint==2.6.0 pytest behave==1.2.6 + run: pip3 install pytest behave==1.2.6 if: matrix.ubuntu == 18 + - name: Install latest pylint + run: pip3 install pylint + - name: PHP linting run: phpcs --report-width=120 . working-directory: Nominatim diff --git a/docs/develop/Development-Environment.md b/docs/develop/Development-Environment.md index eba87c09..3cda610e 100644 --- a/docs/develop/Development-Environment.md +++ b/docs/develop/Development-Environment.md @@ -32,7 +32,7 @@ It has the following additional requirements: * [behave test framework](https://behave.readthedocs.io) >= 1.2.6 * [phpunit](https://phpunit.de) (9.5 is known to work) * [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) -* [Pylint](https://pylint.org/) (2.6.0 is used for the CI) +* [Pylint](https://pylint.org/) (CI always runs the latest version from pip) * [pytest](https://pytest.org) The documentation is built with mkdocs: -- 2.39.5