Skip to content

Commit

Permalink
chore: Use astral-sh/ruff-action@v3 to run the Python linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jan 3, 2025
1 parent e476778 commit a35399c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node-gyp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a35399c

Please sign in to comment.