You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/python-publish.yml
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,6 @@ jobs:
28
28
29
29
- name: Build release distributions
30
30
run: |
31
-
# NOTE: put your own distribution build steps here.
32
31
python -m pip install build
33
32
python -m build
34
33
@@ -38,10 +37,27 @@ jobs:
38
37
name: release-dists
39
38
path: dist/
40
39
40
+
test:
41
+
runs-on: ubuntu-latest
42
+
43
+
steps:
44
+
- uses: actions/checkout@v4
45
+
46
+
- uses: actions/setup-python@v5·
47
+
with:
48
+
python-version: "3.10.12"
49
+
50
+
- name: Test with pytest
51
+
run: |
52
+
pip install pytest
53
+
pip install -e .
54
+
pytest
55
+
41
56
pypi-publish:
42
57
runs-on: ubuntu-latest
43
58
needs:
44
59
- release-build
60
+
- test
45
61
permissions:
46
62
# IMPORTANT: this permission is mandatory for trusted publishing
47
63
id-token: write
@@ -50,8 +66,7 @@ jobs:
50
66
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
67
environment:
52
68
name: pypi
53
-
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
-
# url: https://pypi.org/p/YOURPROJECT
69
+
url: https://pypi.org/project/torchcontrol/
55
70
#
56
71
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
72
# ALTERNATIVE: exactly, uncomment the following line instead:
0 commit comments