|
6 | 6 | pull_request: |
7 | 7 | branches: [master] |
8 | 8 |
|
| 9 | +permissions: |
| 10 | + contents: read |
| 11 | + |
| 12 | +concurrency: |
| 13 | + group: tests-${{ github.workflow }}-${{ github.ref }} |
| 14 | + cancel-in-progress: true |
| 15 | + |
9 | 16 | jobs: |
10 | 17 | test: |
11 | 18 | runs-on: ubuntu-latest |
| 19 | + timeout-minutes: 10 |
12 | 20 | steps: |
13 | | - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 |
14 | | - - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 |
15 | | - - run: uv python install 3.14 |
16 | | - - run: uv sync --dev |
17 | | - - run: uv run pytest --tb=short -q |
18 | | - |
| 21 | + - name: Check out repository |
| 22 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 |
| 23 | + - name: Install uv |
| 24 | + uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 |
| 25 | + with: |
| 26 | + version: latest-known |
| 27 | + - name: Install Python |
| 28 | + run: uv python install 3.14 |
| 29 | + - name: Install dependencies |
| 30 | + run: uv sync --locked --dev |
| 31 | + - name: Run tests |
| 32 | + run: uv run --no-sync pytest --tb=short -q |
19 | 33 | lint: |
20 | 34 | runs-on: ubuntu-latest |
| 35 | + timeout-minutes: 10 |
21 | 36 | steps: |
22 | | - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 |
23 | | - - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 |
24 | | - - run: uv python install 3.14 |
25 | | - - run: uv sync --dev |
26 | | - - run: uv run ruff check . |
27 | | - - run: uv run ruff format --check . |
| 37 | + - name: Check out repository |
| 38 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 |
| 39 | + - name: Install uv |
| 40 | + uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 |
| 41 | + with: |
| 42 | + version: latest-known |
| 43 | + - name: Install Python |
| 44 | + run: uv python install 3.14 |
| 45 | + - name: Install dependencies |
| 46 | + run: uv sync --locked --dev |
| 47 | + - name: Run Ruff |
| 48 | + run: uv run --no-sync ruff check . |
| 49 | + - name: Check formatting |
| 50 | + run: uv run --no-sync ruff format --check . |
0 commit comments