8000 Merge pull request #131 from codellm-devkit/130-prepare-for-v100-release · codellm-devkit/python-sdk@0d74faf · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d74faf

Browse files
authored
Merge pull request #131 from codellm-devkit/130-prepare-for-v100-release
Update releases and readme
2 parents a7d0e62 + c68b8ac commit 0d74faf

File tree

7 files changed

+274
-305
lines changed

7 files changed

+274
-305
lines changed

.github/workflows/mkdocs-deploy.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/python-publish.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,55 @@ jobs:
1212
release:
1313
runs-on: ubuntu-latest
1414

15-
env:
16-
JAVA_HOME: ${{ github.workspace }}/graalvm-ce-java11-22.3.3
17-
1815
steps:
1916
- name: Check out code
2017
uses: actions/checkout@v4
2118

2219
- name: Set up Python
23-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2421
with:
2522
python-version: '3.11'
2623

27-
- name: Set up JDK 11 from GraalVM
28-
run: |
29-
echo "${{ env.JAVA_HOME }}/bin" >> $GITHUB_PATH
30-
wget https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.3/graalvm-ce-java11-linux-amd64-22.3.3.tar.gz
31-
tar -xvzf graalvm-ce-java11-linux-amd64-22.3.3.tar.gz
32-
${{ env.JAVA_HOME }}/bin/gu install native-image
24+
- name: Set up GraalVM CE Java 11
25+
uses: graalvm/setup-graalvm@v1
26+
with:
27+
java-version: '11'
28+
distribution: 'graalvm-community'
29+
github-token: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Install jq
32+
run: sudo apt-get update && sudo apt-get install -y jq
3333

3434
- name: Install Poetry
3535
run: |
3636
curl -sSL https://install.python-poetry.org | python3 -
3737
echo "${HOME}/.local/bin" >> $GITHUB_PATH
38+
export PATH="${HOME}/.local/bin:$PATH"
3839
39-
- name: Configure Poetry
40-
run: poetry config virtualenvs.in-project true
41-
42-
- name: Install Dependencies
43-
run: poetry install --no-root
40+
- name: Install Python package dependencies
41+
run: |
42+
poetry config virtualenvs.create false
43+
poetry install --sync --no-interaction
4444
4545
- name: Run Tests
46-
id: build
47-
continue-on-error: true # Allow workflow continuation on failure
46+
id: test
47+
continue-on-error: true
4848
run: poetry run make test
4949

5050
- name: Delete tag on failure
51-
if: steps.build.outcome != 'success'
51+
if: steps.test.conclusion == 'failure'
5252
run: |
53+
echo "Tests failed. Deleting tag ${GITHUB_REF#refs/tags/}..."
5354
git push --delete origin ${GITHUB_REF#refs/tags/}
54-
exit 1 # Fail the workflow
55+
exit 1
56+
57+
- name: Inject the latest Code Analyzer JAR
58+
run: |
59+
CODE_ANALYZER_URL=$(curl -s https://api.github.com/repos/codellm-devkit/codeanalyzer-java/releases/latest | jq -r '.assets[] | select(.name | endswith(".jar")) | .browser_download_url')
60+
echo "Downloading: $CODE_ANALYZER_URL"
61+
wget -q "$CODE_ANALYZER_URL"
62+
mkdir -p ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/
63+
mv codeanalyzer-*.jar ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/
5564
5665
- name: Build Package
5766
run: poetry build
@@ -72,3 +81,6 @@ jobs:
7281
body: ${{ steps.gen_changelog.outputs.changelog }}
7382
env:
7483
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84+
85+
- name: Publish package distributions to PyPI
86+
run: poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/release_config.json

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,62 @@
11
{
22
"categories": [
3+
{
4+
"title": "## ✨ Release",
5+
"labels": [
6+
"release"
7+
]
8+
},
39
{
410
"title": "## 🚀 Features",
5-
"labels": ["kind/feature", "enhancement"]
11+
"labels": [
12+
"kind/feature",
13+
"enhancement"
14+
]
615
},
716
{
817
"title": "## 🐛 Fixes",
9-
"labels": ["fix", "bug"]
18+
"labels": [
19+
"fix",
20+
"bug"
21+
]
1022
},
1123
{
1224
"title": "## ♻️ Refactoring",
13-
"labels": ["refactoring"]
25+
"labels": [
26+
"refactoring"
27+
]
1428
},
1529
{
1630
"title": "## ⚡️ Performance Improvements",
17-
"labels": ["performance"]
31+
"labels": [
32+
"performance"
33+
]
1834
},
1935
{
2036
"title": "## \uD83D\uDCDA Documentation",
21-
"labels": ["documentation", "doc"]
37+
"labels": [
38+
"documentation",
39+
"doc"
40+
]
2241
},
2342
{
2443
"title": "## \uD83D\uDEA6 Tests",
25-
"labels": ["test"]
44+
"labels": [
45+
"test"
46+
]
2647
},
2748
{
2849
"title": "## \uD83D\uDEE0 Other Updates",
29-
"labels": ["other", "kind/dependency-change"]
50+
"labels": [
51+
"other",
52+
"kind/dependency-change"
53+
]
3054
},
3155
{
3256
"title": "## 🚨 Breaking Changes",
33-
"labels": ["breaking"]
57+
"labels": [
58+
"breaking"
59+
]
3460
}
3561
],
3662
"ignore_labels": [

CONTRIBUTING.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Contributing to Codellm-Devkit
2+
3+
Thank you for your interest in contributing to the Codellm-Devkit (CLDK)! Here we provide guidelines for contributing to any repository in the codellm-devkit organization.
4+
5+
## How to Contribute
6+
7+
### Issues and Discussions
8+
- For bugs and actionable items, please prefer creating an issue in the relevant repository
9+
- For open-ended or design discussions _specifically related to the specification_, use our [specification discussions](https://github.com/codellm-devkit/specification/discussions)
10+
- For other general discussions that are not suitable as issues, use our [organization discussions](https://github.com/orgs/codellm 10000 -devkit/discussions)
11+
12+
In all cases, please check for duplicates before creating new issues or discussions!
13+
14+
### Pull Requests
15+
We welcome PRs across all our repositories! When submitting:
16+
- Fork the repository
17+
- Follow existing code style
18+
- Include tests where applicable
19+
- Update documentation as needed
20+
- Link related issues
21+
22+
## Development Guidelines
23+
24+
### Code Quality
25+
- Follow the repository's established patterns
26+
- Include appropriate documentation
27+
- Add tests for new functionality
28+
- Handle errors appropriately
29+
30+
### Documentation
31+
- Keep READMEs current
32+
- Document configuration options
33+
- Provide clear examples
34+
- Include setup instructions
35+
36+
### Security
37+
- Follow security best practices
38+
- Implement proper input validation
39+
- Document security considerations
40+
41+
## Getting Started
42+
43+
1. Fork the repository
44+
2. Clone your fork:
45+
```bash
46+
git clone https://github.com/your-username/repository-name.git
47+
```
48+
3. Create a feature branch:
49+
```bash
50+
git checkout -b my-feature
51+
```
52+
4. Make your changes and commit:
53+
```bash
54+
git commit -m "Description of changes"
55+
```
56+
5. Push and create a Pull Request
57+
58+
## Code of Conduct
59+
60+
Please note that this project is released with a [Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
61+
62+
## License
63+
64+
By contributing, you agree that your contributions will be licensed under the Apache 2.0 License.
65+
66+
Thank you for contributing to Codellm-Devkit!

0 commit comments

Comments
 (0)
0