Skip to content

Commit cb5b0ee

Browse files
Release 2.0.0 (#55)
Co-authored-by: Jesse De Loore <[email protected]>
1 parent aa69a52 commit cb5b0ee

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,17 @@ on:
77

88
jobs:
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

.github/workflows/test.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,20 @@ jobs:
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

0 commit comments

Comments
 (0)