Skip to content

Commit c2ae165

Browse files
committed
Fix ruff action
1 parent bf96bb6 commit c2ae165

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4+
45
name: Python package
56

67
on:
78
push:
8-
branches: ['**']
9+
branches: ['main']
910
pull_request:
1011
branches: ['main']
11-
1212
jobs:
1313
ruff:
1414
runs-on: ubuntu-latest
15-
1615
steps:
1716
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
18-
with:
19-
# On PRs, lint the head commit directly to avoid stale merge-ref confusion.
20-
ref: ${{ github.event.pull_request.head.sha || github.sha }}
21-
- name: Set up Python 3.13
17+
- name: Set up Python 3.14
2218
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
2319
with:
24-
python-version: '3.13'
20+
python-version: '3.14'
2521
- name: Install Ruff
2622
run: |
2723
python -m pip install --upgrade pip
@@ -33,6 +29,7 @@ jobs:
3329
run: |
3430
ruff format --check .
3531
32+
3633
build:
3734
needs: ruff
3835
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)