Skip to content

Commit e10f950

Browse files
committed
feat: add ci workflow
1 parent fb9545e commit e10f950

3 files changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/ci-test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Auto Publish to PyPI and GitHub Release
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
update-version-and-publish:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: "3.x"
21+
22+
- name: Install setuptools
23+
run: |
24+
python3 -m pip install setuptools
25+
python3 -m pip install wheel
26+
27+
- name: Build and List contents of dist directory
28+
run: |
29+
python3 -m unittest discover -s tests
30+
python3 setup.py sdist bdist_wheel
31+
ls -l dist/

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="parse_llm_code",
8-
version="0.1.20",
8+
version="0.1.21",
99
author="aboutmydreams",
1010
author_email="aboutmydreams@163.com",
1111
description="a lib to parse llm answer to code",

0 commit comments

Comments
 (0)