Skip to content

Commit

Permalink
Merge pull request #108 from nims-dpfc/develop/v1.1.0
Browse files Browse the repository at this point in the history
Develop/v1.1.0
  • Loading branch information
sonoh5n authored Jan 15, 2025
2 parents 95f2cfc + c27fe9a commit 4df7426
Show file tree
Hide file tree
Showing 67 changed files with 3,892 additions and 285 deletions.
22 changes: 10 additions & 12 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
## issue
<!--関連issueを記載する-->
## Related Issue
<!--Please specify the related issue(s)-->

## 変更内容
<!--対応内容や変更内容を記載する-->
## Changes
<!--Describe the implementation details and changes made-->

## 実施していない内容
<!--今回の変更で対応しない・できない内容を記載する-->
## Out of Scope
<!--List any items that are not addressed or out of scope for this change-->

以下、バリデーション機能で不具合の指摘が上がっているが、本件対応内容や変更方針がまとまっていないため、次回のバージョンに回す。また以下の追加機能も次回のバージョンに回す。
## Verification
<!--List the items to be verified in this pull request-->

## 検証内容
<!--プルリクで確認する内容を列挙する-->

- [ ] CIのテストがパスする
- [ ] 対象のスクリプトの変更に問題がないか
- [ ] CI tests pass successfully
- [ ] No issues with the modified scripts
18 changes: 7 additions & 11 deletions .github/workflows/coverage_badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,12 @@ jobs:
coverage-badge -o docs/img/coverage.svg -f
- name: Commit coverage badge
run: |
git remote set-url origin https://github-actions:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git stash
git pull origin ${GITHUB_REF_NAME} --rebase
if git stash list | grep -q 'stash@{0}'; then
git stash pop
fi
if (git diff --shortstat | grep '[0-9]'); then
git add docs/img/coverage.svg
git commit -m "[Auto] Update coverage badge based on latest test results"
git push origin HEAD:refs/heads/${GITHUB_REF_NAME}
fi
git add docs/img/coverage.svg
git add pytest.xml
git add Cargo.lock
git commit -m "chore: Update coverage badge" || echo "No changes to commit"
git push origin HEAD || echo "No changes to push"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 7 additions & 1 deletion .github/workflows/coverage_pr_reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,23 @@ jobs:
override: true
components: llvm-tools-preview

- name: Install Python development files
run: |
sudo apt-get update
sudo apt-get install -y python3-dev
- name: Install grcov
run: cargo install grcov

- name: Set up Python environment variables
run: |
echo "PYTHON_INCLUDE_DIR=$(python3 -c 'from sysconfig import get_paths as gp; print(gp()[\"include\"])')" >> $GITHUB_ENV
echo "PYTHON_LIB_DIR=$(python3 -c 'from sysconfig import get_paths as gp; print(gp()[\"stdlib\"])')" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=${{ env.PYTHON_LIB_DIR }}:$LD_LIBRARY_PATH" >> $GITHUB_ENV
- name: Build with coverage
env:
RUSTFLAGS: "-C instrument-coverage -L${{ env.PYTHON_LIB_DIR }} -I${{ env.PYTHON_INCLUDE_DIR }}"
RUSTFLAGS: "-C instrument-coverage -L${{ env.PYTHON_LIB_DIR }} -I${{ env.PYTHON_INCLUDE_DIR }} -C link-arg=-Wl,-rpath,${{ env.PYTHON_LIB_DIR }}"
run: cargo build

- name: Run tests with coverage
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "*"
- "**"
- "!docs*"
- "!doc*"
pull_request:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/pr-agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR-Agent

on:
pull_request:
types: [opened, reopened, synchronize]
issue_comment:
types: [created, edited]
workflow_dispatch:

permissions:
issues: write
pull-requests: write

jobs:
pr_agent_job:
runs-on: ubuntu-latest
name: Run pr agent on every pull request
steps:
- name: PR Agent action step
id: pragent
uses: Codium-ai/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTION.AUTO_REVIEW: true
GITHUB_ACTION.AUTO_DESCRIBE: true
GITHUB_ACTION.AUTO_IMPROVE: true
167 changes: 162 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rdetoolkit-core"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
build = "rdetoolkit-core/build.rs"

Expand All @@ -12,8 +12,17 @@ path = "rdetoolkit-core/lib.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
pyo3 = { version = "0.22.4", features = ["extension-module"] }
pyo3 = { version = "0.22.4", features = [
"extension-module",
"auto-initialize",
] }
image = "0.24.6"
chardetng = "0.1.17"
encoding_rs = "0.8.35"
tempfile = "3.14.0"

[build-dependencies]
pyo3-build-config = "0.22.5"

[features]
default = ["extension-module"]
Expand Down
Loading

0 comments on commit 4df7426

Please sign in to comment.