Skip to content

Commit c96b2fe

Browse files
authored
prepare for CI testing (#2)
1 parent 06ad646 commit c96b2fe

File tree

4 files changed

+121
-15
lines changed

4 files changed

+121
-15
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ all:
44

55
.PHONY: lint
66
lint:
7-
uvx ruff format --check
8-
uvx ruff check
7+
uv run --dev ruff format --check
8+
uv run --dev ruff check
99

1010
.PHONY: fix
1111
fix:
12-
uvx ruff format
13-
uvx ruff check --fix
12+
uv run --dev ruff format
13+
uv run --dev ruff check --fix
1414

1515
.PHONY: test
1616
test:
17-
uvx --with=requests --with-requirements=action.py pytest -s -o log_cli=true -o log_cli_level=DEBUG test.py
17+
uv run --dev pytest -s -o log_cli=true -o log_cli_level=DEBUG test.py

action.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# /// script
22
# requires-python = ">=3.14"
3-
# dependencies = [
4-
# "pypi-attestations",
5-
# "sigstore",
6-
# ]
73
# ///
84

95
import base64

pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[project]
2+
name = "attest-action"
3+
version = "0.0.1"
4+
description = "A GitHub Action that generates [PEP 740] publish attestations for your Python packages."
5+
readme = "README.md"
6+
dependencies = [
7+
"pypi-attestations>=0.0.28",
8+
"sigstore>=4.1.0",
9+
]
10+
requires-python = ">=3.14"
11+
12+
[dependency-groups]
13+
dev = [
14+
"pytest>=9.0.1",
15+
"requests>=2.32.5",
16+
"ruff>=0.14.6",
17+
]
18+

action.py.lock renamed to uv.lock

Lines changed: 98 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)