Skip to content

Commit

Permalink
ci: use correct platform
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Feb 7, 2025
1 parent 00710ab commit 6595ad5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- run: uvx hatch run +py=${{matrix.python-version}} types:check

test:
runs-on: ubuntu-latest
runs-on: ${{matrix.os}}
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', pypy3.9, pypy3.10]
Expand Down
10 changes: 3 additions & 7 deletions src/inline_snapshot/pytest_plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import ast
import os
import sys
from pathlib import Path

Expand Down Expand Up @@ -280,6 +279,7 @@ def apply_changes(flag):
try:
console = Console(
highlight=False,
color_system=None,
)
if "short-report" in flags:

Expand Down Expand Up @@ -337,7 +337,7 @@ def report(flag, message, message_n):
if not {"review", "report", flag} & flags:
continue

console.rule(f"[yellow bold]{flag.capitalize()} snapshots")
console.rule(f"[yellow bold]{flag.capitalize()} snapshots", characters="-")

with ChangeRecorder().activate() as cr:
apply_all(used_changes)
Expand All @@ -352,11 +352,7 @@ def report(flag, message, message_n):
Panel(
Syntax(diff, "diff", theme="ansi_light"),
title=str(name),
box=(
box.ASCII
if os.environ.get("TERM", "") == "unknown"
else box.ROUNDED
),
box=(box.ASCII),
)
)

Expand Down
4 changes: 4 additions & 0 deletions tests/test_formating.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ def test_a():
)


import pytest


@pytest.mark.skip()
def test_format_command_fail():

@normalization
Expand Down

0 comments on commit 6595ad5

Please sign in to comment.