Skip to content

Commit 809adfc

Browse files
committed
pipeline test - fix bump2version
1 parent d50530a commit 809adfc

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/python-linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
paths-ignore:
99
- 'README.md'
1010
- 'docs/**'
11-
11+
# todo: 2 jobs (lint / test)
1212
jobs:
1313
lint:
1414

.github/workflows/python-package.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
permissions:
1313
id-token: write
1414

15+
# todo:
16+
# - remove test/lint (already in feature pipelines)
17+
# - 3jobs: bump/package/publish
18+
# -
19+
# -
1520
jobs:
1621
build:
1722
runs-on: ubuntu-latest
@@ -30,18 +35,27 @@ jobs:
3035
python -m pip install --upgrade pip
3136
pip install -r requirements.txt
3237
38+
# lint and unit tests
3339
- name: Run unit tests
3440
run: python -m unittest discover -s tests -p 'test_*.py'
3541

3642
- name: Run Ruff
3743
run: ruff check --output-format=github src
3844

45+
46+
# version increment
47+
- name: Set up Git user for bump2version commit
48+
run: |
49+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
50+
git config --global user.name "github-actions[bot]"
51+
3952
- name: Bump version and push tag
4053
run: |
4154
pip install --upgrade bump2version
4255
bump2version patch --allow-dirty
4356
4457
58+
# build package
4559
- name: Build Python package
4660
run: python setup.py sdist bdist_wheel
4761

0 commit comments

Comments
 (0)