From 758fb8382da7daf5d1501dbd40fb902bf9bd4bd3 Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Tue, 31 Dec 2024 14:55:00 +0800 Subject: [PATCH] :green_heart: Enable CI --- .github/workflows/main.yml | 17 +++++++++-------- .pre-commit-config.yaml | 12 ++++++------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef59c3c..50d8bbd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,8 +30,8 @@ jobs: - windows-latest runs-on: ${{matrix.runs-on}} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{env.python-version}} cache: ${{env.cache}} @@ -44,9 +44,10 @@ jobs: - name: Test run: | pytest --cov - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 + build: - # needs: test + needs: test strategy: fail-fast: false matrix: @@ -56,8 +57,8 @@ jobs: - windows-latest runs-on: ${{matrix.runs-on}} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{env.python-version}} cache: ${{env.cache}} @@ -74,12 +75,12 @@ jobs: if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/') with: password: ${{secrets.PYPI_API_TOKEN}} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: runner.os == 'Linux' && ! startsWith(github.ref, 'refs/tags/') with: path: | dist/* - - uses: softprops/action-gh-release@v1 + - uses: softprops/action-gh-release@v2 if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/') with: # body_path: build/CHANGELOG.md diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c636a89..1b3f5a0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ exclude: ^templates/|\.json$ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: fix-byte-order-marker @@ -47,7 +47,7 @@ repos: hooks: - id: check-mailmap - repo: https://github.com/rhysd/actionlint - rev: v1.7.2 + rev: v1.7.5 hooks: - id: actionlint - repo: https://github.com/adrienverge/yamllint @@ -55,7 +55,7 @@ repos: hooks: - id: yamllint - repo: https://github.com/executablebooks/mdformat - rev: 0.7.17 + rev: 0.7.21 hooks: - id: mdformat additional_dependencies: @@ -69,18 +69,18 @@ repos: - mdformat-config - mdformat-web - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.14.0 + rev: v0.17.0 hooks: - id: markdownlint-cli2 additional_dependencies: - markdown-it-texmath - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.7 + rev: v0.8.4 hooks: - id: ruff - id: ruff-format - repo: https://github.com/kumaraditya303/mirrors-pyright - rev: v1.1.381 + rev: v1.1.391 hooks: - id: pyright