From 05f3fbc89c8ad99410af063e0065a80cae5d649a Mon Sep 17 00:00:00 2001 From: Muhan Li Date: Sun, 25 Sep 2022 00:45:16 +0800 Subject: [PATCH] Update Pylint --- .github/workflows/ci.yml | 18 ++++++++++++++++-- README.md | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad109cf..0804e45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,21 @@ jobs: pylint: name: Pylint runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ "3.9", "3.10" ] steps: - - uses: actions/checkout@v1 - - uses: ricardochaves/python-lint@v1.4.0 + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') diff --git a/README.md b/README.md index 652b0b7..cba70f9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ subscription link of public holidays in mainland China -> Calendar data updated at 2:44 on September 20, 2022 +> Calendar data updated at 1:01 on September 25, 2022 ## Demo