crafvy 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ # Publishes `crafvy` to PyPI when a version tag (v1.2.3) is pushed — the tag
2
+ # pnpm sdk:sync-public sets. Uses PyPI's trusted publishing: on pypi.org,
3
+ # add this repository and the workflow `release.yml` as a trusted publisher
4
+ # of the project (no token to store).
5
+ name: Release
6
+ on:
7
+ push:
8
+ tags: ["v*"]
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ environment: pypi
13
+ permissions:
14
+ id-token: write
15
+ contents: read
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.12"
21
+ - name: Tests (the shared conformance suite)
22
+ run: PYTHONPATH=src python -m unittest discover -s tests -v
23
+ - name: The tag is the package's version
24
+ run: test "v$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)" = "$GITHUB_REF_NAME"
25
+ - run: python -m pip install build && python -m build
26
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,14 @@
1
+ name: Test
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ matrix:
8
+ python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: actions/setup-python@v5
12
+ with:
13
+ python-version: ${{ matrix.python }}
14
+ - run: PYTHONPATH=src python -m unittest discover -s tests -v