Skip to content

Commit fd29786

Browse files
Copilotalexmojaki
andcommitted
ci: add copilot setup steps workflow with pre-commit install
Co-authored-by: alexmojaki <3627481+alexmojaki@users.noreply.github.com>
1 parent be9b1c6 commit fd29786

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Copilot Setup Steps
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- .github/workflows/copilot-setup-steps.yml
8+
9+
jobs:
10+
copilot-setup-steps:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v7
19+
with:
20+
version: "0.9.22"
21+
22+
- name: Install pre-commit
23+
run: |
24+
uv sync --python 3.12 --frozen
25+
uv run --no-sync pre-commit --version

tests/test_json_args.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from attrs import define
2323
from dirty_equals import IsJson, IsStr
2424
from inline_snapshot import snapshot
25-
from logfire import ConsoleOptions
2625
from pydantic import AnyUrl, BaseModel, ConfigDict, FilePath, NameEmail, RootModel, SecretBytes, SecretStr
2726
from pydantic.dataclasses import dataclass as pydantic_dataclass
2827
from sqlalchemy import String, create_engine
@@ -1657,7 +1656,7 @@ def test_homogeneous_dict_formatting(capsys: pytest.CaptureFixture[str]):
16571656
"""Test that homogeneous dicts with additionalProperties are formatted correctly."""
16581657
logfire.configure(
16591658
send_to_logfire=False,
1660-
console=ConsoleOptions(verbose=True, colors='never', include_timestamps=False),
1659+
console=logfire.ConsoleOptions(verbose=True, colors='never', include_timestamps=False),
16611660
)
16621661

16631662
# Use >10 keys to exercise the additionalProperties path

0 commit comments

Comments
 (0)