Skip to content

Commit 2cba2f0

Browse files
authored
Prepare release pypi (#12)
* ci: small fixes for badge interrogate * set new version in codemeta and pyproject.toml * fix ci: uv setup was missing in interrogate job * fix ci: remove a wrong if condition
1 parent 897bcc3 commit 2cba2f0

File tree

5 files changed

+777
-755
lines changed

5 files changed

+777
-755
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,44 @@ jobs:
2626
- name: Ruff check
2727
run: uv run ruff check --output-format=github
2828

29+
security:
30+
name: Security (Bandit)
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v6
34+
35+
- name: Setup uv environment
36+
uses: ./.github/actions/setup-uv
37+
with:
38+
dependency-group: dev
39+
40+
- name: Run Bandit security linter
41+
run: uv run bandit -c pyproject.toml -r src/sw_metadata_bot/
42+
43+
interrogate:
44+
name: Interrogate badge
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v6
48+
49+
- name: Setup uv environment
50+
uses: ./.github/actions/setup-uv
51+
with:
52+
dependency-group: dev
53+
2954
- name: Interrogate (docstring coverage)
30-
run: uv run interrogate -v src/sw_metadata_bot/
55+
run: uv run interrogate -c pyproject.toml
3156

3257
- name: Commit interrogate badge
3358
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
3459
run: |
35-
uv run interrogate -o interrogate.svg -f src/sw_metadata_bot/
3660
git config user.name "github-actions[bot]"
3761
git config user.email "github-actions[bot]@users.noreply.github.com"
38-
git add interrogate.svg
62+
git add interrogate_badge.svg
3963
git diff --quiet && git diff --staged --quiet || git commit -m "chore: update interrogate badge"
4064
git push
4165
continue-on-error: true
42-
43-
- name: Bandit (security linter)
44-
run: uv run bandit -c pyproject.toml -r src/sw_metadata_bot/
45-
66+
4667

4768
test:
4869
name: Test (pytest)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# sw-metadata-bot
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
4+
[![Version](https://img.shields.io/badge/version-0.1.3-blue.svg)](https://github.com/SoftwareUnderstanding/sw-metadata-bot/releases)
45
[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
56
[![CI](https://github.com/SoftwareUnderstanding/sw-metadata-bot/workflows/CI/badge.svg)](https://github.com/codemetasoft/sw-metadata-bot/actions)
67
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
78
![coverage](coverage.svg)
8-
![interrogate](interrogate.svg)
9+
![interrogate](interrogate_badge.svg)
910

1011
An automated bot that analyzes repository metadata quality and creates issues with improvement suggestions.
1112

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"metacheck>=0.2.0",
3737
"requests>=2.32.5"
3838
],
39-
"version": "v0.1.1",
39+
"version": "0.1.3",
4040
"codemeta:contIntegration": {
4141
"@id": "https://raw.githubusercontent.com/SoftwareUnderstanding/sw-metadata-bot/main/.github/workflows/ci.yml"
4242
},

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sw-metadata-bot"
3-
version = "0.1.0"
3+
version = "0.1.3"
44
description = "RSMetaCheck bot for pushing issues with existing repository metadata"
55
readme = "README.md"
66
requires-python = ">=3.11,<3.13"
@@ -90,6 +90,6 @@ quiet = false
9090
whitelist-regex = []
9191
color = true
9292
omit-covered-files = false
93-
# output file logation
93+
# output file location
9494
generate-badge = "."
9595
badge-format = "svg"

0 commit comments

Comments
 (0)