From 62ee2d8e89746661dda40dabb64ac2c26bc8aaac Mon Sep 17 00:00:00 2001 From: WEN Hao Date: Wed, 7 Feb 2024 01:15:07 +0800 Subject: [PATCH] update action runner versions --- .github/workflows/check-formatting.yml | 6 +++--- .github/workflows/publish.yml | 6 +++--- .github/workflows/run-pytest.yml | 10 +++++++--- .pre-commit-config.yaml | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check-formatting.yml b/.github/workflows/check-formatting.yml index d5d800f..3fba58a 100644 --- a/.github/workflows/check-formatting.yml +++ b/.github/workflows/check-formatting.yml @@ -15,12 +15,12 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.11"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: List existing Python packages diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e42cee7..4fd900d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,9 +24,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' cache: 'pip' # caching pip dependencies @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build Changelog id: changelog uses: mikepenz/release-changelog-builder-action@v3 diff --git a/.github/workflows/run-pytest.yml b/.github/workflows/run-pytest.yml index 7211e18..8fa67b2 100644 --- a/.github/workflows/run-pytest.yml +++ b/.github/workflows/run-pytest.yml @@ -18,9 +18,9 @@ jobs: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -37,4 +37,8 @@ jobs: pytest --cov=sphinx_emoji_favicon -v -s test - name: Upload coverage to Codecov if: matrix.python-version == '3.10' - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true # optional (default = false) + verbose: true # optional (default = false) + token: ${{ secrets.CODECOV_TOKEN }} # required diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f3263d6..4177833 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 22.8.0 + rev: 23.12.1 hooks: - id: black args: [--line-length=128, --extend-exclude=.ipynb, --verbose]