From ff7c08f02ee3504033e30ae65283b42917c5f245 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Sat, 29 Nov 2025 02:30:47 -0500 Subject: [PATCH 1/3] Add ruff check workflow --- .github/workflows/ruff-check.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ruff-check.yml diff --git a/.github/workflows/ruff-check.yml b/.github/workflows/ruff-check.yml new file mode 100644 index 0000000..c12f79e --- /dev/null +++ b/.github/workflows/ruff-check.yml @@ -0,0 +1,25 @@ +name: Ruff check + +on: + push: + branches: + - main + pull_request: + branches: + - "**" + +jobs: + ruff-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Install Python + uses: actions/setup-python@v6 + with: + python-version: "3.14" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ruff + - name: Run Ruff + run: ruff check --output-format=github . From 98974e54939fb13b4865c214c81dbb7f7741ae14 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Sat, 29 Nov 2025 02:31:09 -0500 Subject: [PATCH 2/3] Use actions/checkout@v6 --- .github/workflows/ci-tests.yml | 8 ++++---- .github/workflows/mkdocs.yml | 2 +- .github/workflows/mypy.yml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index c805c75..78f5ccf 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -1,3 +1,5 @@ +name: CI tests + on: push: branches: @@ -6,8 +8,6 @@ on: branches: - main -name: CI Tests - jobs: build: runs-on: ubuntu-latest @@ -17,7 +17,7 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6 with: @@ -42,7 +42,7 @@ jobs: test-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index c73068b..26c2861 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -12,7 +12,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Configure Git Credentials run: | git config user.name github-actions[bot] diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 7d1384c..fa491a4 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -6,7 +6,7 @@ on: - main pull_request: branches: - - '**' + - "**" jobs: mypy: @@ -14,12 +14,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: - python-version: 3.14.0 + python-version: "3.14" - name: Install uv run: | From b922480ebc2d887a767bd9853c9f523693d110c0 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Sat, 29 Nov 2025 02:31:28 -0500 Subject: [PATCH 3/3] Update badges in README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8857e73..af44f8c 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,9 @@ [![PyPI version](https://img.shields.io/pypi/v/ggsci)](https://pypi.org/project/ggsci/) ![Python versions](https://img.shields.io/pypi/pyversions/ggsci) -[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/) -[![CI Tests](https://github.com/nanxstats/py-ggsci/actions/workflows/ci-tests.yml/badge.svg)](https://github.com/nanxstats/py-ggsci/actions/workflows/ci-tests.yml) +[![CI tests](https://github.com/nanxstats/py-ggsci/actions/workflows/ci-tests.yml/badge.svg)](https://github.com/nanxstats/py-ggsci/actions/workflows/ci-tests.yml) +[![Mypy check](https://github.com/nanxstats/py-ggsci/actions/workflows/mypy.yml/badge.svg)](https://github.com/nanxstats/py-ggsci/actions/workflows/mypy.yml) +[![Ruff check](https://github.com/nanxstats/py-ggsci/actions/workflows/ruff-check.yml/badge.svg)](https://github.com/nanxstats/py-ggsci/actions/workflows/ruff-check.yml) [![mkdocs](https://github.com/nanxstats/py-ggsci/actions/workflows/mkdocs.yml/badge.svg)](https://nanx.me/py-ggsci/) ![License](https://img.shields.io/pypi/l/ggsci)