Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/mkdocs-deploy.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/python-publish.yml

This file was deleted.

50 changes: 31 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,46 +12,55 @@ jobs:
release:
runs-on: ubuntu-latest

env:
JAVA_HOME: ${{ github.workspace }}/graalvm-ce-java11-22.3.3

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Set up JDK 11 from GraalVM
run: |
echo "${{ env.JAVA_HOME }}/bin" >> $GITHUB_PATH
wget https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.3/graalvm-ce-java11-linux-amd64-22.3.3.tar.gz
tar -xvzf graalvm-ce-java11-linux-amd64-22.3.3.tar.gz
${{ env.JAVA_HOME }}/bin/gu install native-image
- name: Set up GraalVM CE Java 11
uses: graalvm/setup-graalvm@v1
with:
java-version: '11'
distribution: 'graalvm-community'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "${HOME}/.local/bin" >> $GITHUB_PATH
export PATH="${HOME}/.local/bin:$PATH"

- name: Configure Poetry
run: poetry config virtualenvs.in-project true

- name: Install Dependencies
run: poetry install --no-root
- name: Install Python package dependencies
run: |
poetry config virtualenvs.create false
poetry install --sync --no-interaction

- name: Run Tests
id: build
continue-on-error: true # Allow workflow continuation on failure
id: test
continue-on-error: true
run: poetry run make test

- name: Delete tag on failure
if: steps.build.outcome != 'success'
if: steps.test.conclusion == 'failure'
run: |
echo "Tests failed. Deleting tag ${GITHUB_REF#refs/tags/}..."
git push --delete origin ${GITHUB_REF#refs/tags/}
exit 1 # Fail the workflow
exit 1

- name: Inject the latest Code Analyzer JAR
run: |
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')
echo "Downloading: $CODE_ANALYZER_URL"
wget -q "$CODE_ANALYZER_URL"
mkdir -p ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/
mv codeanalyzer-*.jar ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/

- name: Build Package
run: poetry build
Expand All @@ -72,3 +81,6 @@ jobs:
body: ${{ steps.gen_changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish package distributions to PyPI
run: poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
42 changes: 34 additions & 8 deletions .github/workflows/release_config.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,62 @@
{
"categories": [
{
"title": "## ✨ Release",
"labels": [
"release"
]
},
{
"title": "## 🚀 Features",
"labels": ["kind/feature", "enhancement"]
"labels": [
"kind/feature",
"enhancement"
]
},
{
"title": "## 🐛 Fixes",
"labels": ["fix", "bug"]
"labels": [
"fix",
"bug"
]
},
{
"title": "## ♻️ Refactoring",
"labels": ["refactoring"]
"labels": [
"refactoring"
]
},
{
"title": "## ⚡️ Performance Improvements",
"labels": ["performance"]
"labels": [
"performance"
]
},
{
"title": "## \uD83D\uDCDA Documentation",
"labels": ["documentation", "doc"]
"labels": [
"documentation",
"doc"
]
},
{
"title": "## \uD83D\uDEA6 Tests",
"labels": ["test"]
"labels": [
"test"
]
},
{
"title": "## \uD83D\uDEE0 Other Updates",
"labels": ["other", "kind/dependency-change"]
"labels": [
"other",
"kind/dependency-change"
]
},
{
"title": "## 🚨 Breaking Changes",
"labels": ["breaking"]
"labels": [
"breaking"
]
}
],
"ignore_labels": [
Expand Down
66 changes: 66 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Contributing to Codellm-Devkit

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.

## How to Contribute

### Issues and Discussions
- For bugs and actionable items, please prefer creating an issue in the relevant repository
- For open-ended or design discussions _specifically related to the specification_, use our [specification discussions](https://github.com/codellm-devkit/specification/discussions)
- For other general discussions that are not suitable as issues, use our [organization discussions](https://github.com/orgs/codellm-devkit/discussions)

In all cases, please check for duplicates before creating new issues or discussions!

### Pull Requests
We welcome PRs across all our repositories! When submitting:
- Fork the repository
- Follow existing code style
- Include tests where applicable
- Update documentation as needed
- Link related issues

## Development Guidelines

### Code Quality
- Follow the repository's established patterns
- Include appropriate documentation
- Add tests for new functionality
- Handle errors appropriately

### Documentation
- Keep READMEs current
- Document configuration options
- Provide clear examples
- Include setup instructions

### Security
- Follow security best practices
- Implement proper input validation
- Document security considerations

## Getting Started

1. Fork the repository
2. Clone your fork:
```bash
git clone https://github.com/your-username/repository-name.git
```
3. Create a feature branch:
```bash
git checkout -b my-feature
```
4. Make your changes and commit:
```bash
git commit -m "Description of changes"
```
5. Push and create a Pull Request

## Code of Conduct

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.

## License

By contributing, you agree that your contributions will be licensed under the Apache 2.0 License.

Thank you for contributing to Codellm-Devkit!
Loading