File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,15 +39,23 @@ jobs:
3939 - name : Install the project
4040 run : uv sync --no-group docs --no-group dev
4141
42+ - name : Test code
43+ id : test
44+ run : uv run pytest
45+
4246 - name : Package project
47+ id : build
4348 run : uv build -o dist/
4449
4550 - name : Sign build artifacts
51+ id : sign
52+ if : ${{ (github.event.inputs.upload || github.ref_type == 'tag') }}
4653 uses : actions/attest-build-provenance@v2
4754 with :
4855 subject-path : " dist/*"
4956
5057 - name : Upload build artifacts
58+ id : upload
5159 uses : actions/upload-artifact@v4
5260 with :
5361 name : release-dists
@@ -62,20 +70,21 @@ jobs:
6270 if : ${{ (github.event.inputs.upload || github.ref_type == 'tag') }}
6371
6472 permissions :
65- contents : read
6673 id-token : write
6774
6875 environment :
6976 name : pypi
7077
7178 steps :
7279 - name : Retrieve release distributions
80+ id : download
7381 uses : actions/download-artifact@v4
7482 with :
7583 name : release-dists
7684 path : dist/
7785
7886 - name : Publish package distributions to PyPI
87+ id : publish
7988 uses : pypa/gh-action-pypi-publish@release/v1
8089 with :
8190 attestations : true
Original file line number Diff line number Diff line change 11[project ]
22name = " ctftime_api"
3- version = " 0.1.4 "
3+ version = " 0.1.5 "
44description = " CTFTime API wrapper"
55authors = [{ name = " John Toniutti" , email = " john.toniutti@gmail.com" }]
66requires-python = " >=3.11"
You can’t perform that action at this time.
0 commit comments