From ceb7426045e2590ef2d935e083ca720c0dd2f21f Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 5 Jan 2025 00:47:33 +0100 Subject: [PATCH] chore: Use astral-sh/ruff-action@v3 to run the Python linter (#281) --- .github/workflows/node-gyp.yml | 4 ++-- .github/workflows/nodejs.yml | 2 +- .github/workflows/python_tests.yml | 4 ++-- .github/workflows/release-please.yml | 9 +-------- 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/node-gyp.yml b/.github/workflows/node-gyp.yml index 400e233c..72b0d9c7 100644 --- a/.github/workflows/node-gyp.yml +++ b/.github/workflows/node-gyp.yml @@ -10,8 +10,8 @@ jobs: fail-fast: false matrix: node-version: ["22"] - os: [macos-13, macos-14, ubuntu-latest, windows-latest] - python-version: ["3.8", "3.10", "3.12", "3.13"] + os: [macos-13, macos-latest, ubuntu-latest, windows-latest] + python-version: ["3.9", "3.11", "3.13"] runs-on: ${{ matrix.os }} steps: - name: Clone gyp-next diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 53935d40..b57d97ff 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false matrix: os: [macos-13, macos-latest, ubuntu-latest, windows-latest] - python: ["3.8", "3.10", "3.12", "3.13"] + python: ["3.9", "3.11", "3.13"] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/python_tests.yml b/.github/workflows/python_tests.yml index 0f225e5f..3e070b53 100644 --- a/.github/workflows/python_tests.yml +++ b/.github/workflows/python_tests.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false max-parallel: 5 matrix: - os: [macos-13, macos-14, ubuntu-latest] # , windows-latest] + os: [macos-13, macos-latest, ubuntu-latest] # , windows-latest] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -30,7 +30,7 @@ jobs: pip install --editable ".[dev]" - run: ./gyp -V && ./gyp --version && gyp -V && gyp --version - name: Lint with ruff # See pyproject.toml for settings - run: ruff check --output-format=github . + uses: astral-sh/ruff-action@v3 - name: Test with pytest # See pyproject.toml for settings run: pytest # - name: Run doctests with pytest diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a96a88fe..a8439392 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -25,15 +25,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - name: Install pypa/build - run: >- - python3 -m pip install build --user - name: Build a binary wheel and a source tarball - run: python3 -m build + run: pipx run build - name: Store the distribution packages uses: actions/upload-artifact@v4 with: