File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 1
1
# GitHub Actions CI workflow for TaskNow CLI
2
- # This workflow runs tests, checks coverage, and builds the package on every push and pull request.
3
- # Compatible with Python 3.10+
2
+ # This workflow runs tests, checks coverage, builds, and publishes to PyPI on version tags.
4
3
5
4
name : CI for TaskNow CLI
6
5
7
6
on :
8
7
push :
9
- branches : ["**"] # Run on all branches
8
+ branches : ["**"]
10
9
tags :
11
- - " v*" # Also run on version tags
10
+ - " v*"
12
11
pull_request :
13
- branches : ["**"] # Run on all PRs
12
+ branches : ["**"]
14
13
15
14
jobs :
16
15
build-test :
@@ -42,25 +41,17 @@ jobs:
42
41
run : |
43
42
coverage run -m pytest
44
43
coverage report
45
- coverage html # Generate HTML report
44
+ coverage html
46
45
47
46
- name : Upload coverage report artifact
48
47
uses : actions/upload-artifact@v4
49
48
with :
50
49
name : htmlcov-${{ matrix.python-version }}
51
- path : htmlcov # Directory generated by 'coverage html'
50
+ path : htmlcov
52
51
53
52
- name : Build package
54
- run : python setup.py sdist bdist_wheel
55
-
56
- # Placeholder for future PyPI deployment
57
- # - name: Publish to PyPI
58
- # run: |
59
- # python -m pip install --upgrade twine
60
- # twine upload dist/*
61
- # env:
62
- # TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
63
- # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
53
+ run : python -m build
54
+
64
55
publish :
65
56
name : Build and Publish to PyPI
66
57
needs : build-test
You can’t perform that action at this time.
0 commit comments