File tree Expand file tree Collapse file tree 2 files changed +21
-17
lines changed
Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 77
88jobs :
99 build :
10-
1110 runs-on : ubuntu-latest
12- strategy :
13- matrix :
14- python-version : ['3.9', '3.10', '3.11', '3.12']
15-
1611 steps :
1712 - uses : actions/checkout@v4
18- - name : Set up Python ${{ matrix.python-version }}
13+ - name : Set up Python
1914 uses : actions/setup-python@v5
2015 with :
21- python-version : ${{ matrix.python-version }}
22- - name : Install dependencies
23- run : |
24- python -m pip install --upgrade pip
25- python -m pip install .[testing]
26- - name : Test with pytest
27- run : |
28- pytest --cov=keepachangelog --cov-fail-under=100 --cov-report=term-missing
16+ python-version : ' 3.12'
2917 - name : Create packages
3018 run : |
31- python -m pip install wheel
32- python setup.py sdist bdist_wheel
19+ python -m pip install build
20+ python -m build .
3321 - name : Publish packages
3422 run : |
3523 python -m pip install twine
Original file line number Diff line number Diff line change 2222 python -m pip install .[testing]
2323 - name : Test with pytest
2424 run : |
25- pytest --cov=keepachangelog --cov-fail-under=100 --cov-report=term-missing
25+ pytest --cov=keepachangelog --cov-fail-under=100 --cov-report=term-missing
26+ - name : Create packages
27+ run : |
28+ python -m pip install build
29+ python -m build .
30+ rm -Rf keepachangelog
31+ - name : Install wheel
32+ run : |
33+ python -m pip install dist/keepachangelog-2.0.0-py3-none-any.whl --force-reinstall
34+ python -c 'import keepachangelog'
35+ - name : Install source distribution
36+ run : |
37+ python -m pip install dist/keepachangelog-2.0.0.tar.gz --force-reinstall
38+ python -c 'import keepachangelog'
39+ - name : Run executable
40+ run : |
41+ keepachangelog --version
You can’t perform that action at this time.
0 commit comments