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 7
7
8
8
jobs :
9
9
build :
10
-
11
10
runs-on : ubuntu-latest
12
- strategy :
13
- matrix :
14
- python-version : ['3.9', '3.10', '3.11', '3.12']
15
-
16
11
steps :
17
12
- uses : actions/checkout@v4
18
- - name : Set up Python ${{ matrix.python-version }}
13
+ - name : Set up Python
19
14
uses : actions/setup-python@v5
20
15
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'
29
17
- name : Create packages
30
18
run : |
31
- python -m pip install wheel
32
- python setup.py sdist bdist_wheel
19
+ python -m pip install build
20
+ python -m build .
33
21
- name : Publish packages
34
22
run : |
35
23
python -m pip install twine
Original file line number Diff line number Diff line change 22
22
python -m pip install .[testing]
23
23
- name : Test with pytest
24
24
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