Skip to content
Closed
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
4 changes: 4 additions & 0 deletions .github/.git-pr-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Release <%= Time.now %>
<% pull_requests.each do |pr| -%>
- #<%= pr.number %> <%= pr.title %> <%= pr.mention %>
<% end -%>
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mameta
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Bug Report
about: Create a bug report
title: ''
labels: 'bug'
assignees: ''
---

<!-- Edit issue title -->

## 🐛 Description

<!-- Provide a detailed description (including the expected behavior) of this issue -->

## 🔍 How to Reproduce

<!-- Describe how to reproduce this issue -->

## 📚 References

<!-- Put a list of external links related to this issue (if any) -->
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Feature Request
about: Submit a feature request
title: ''
labels: ['feature request']
assignees: ''
---

<!-- Edit issue title -->

## 🌈 Overview

<!-- Write a brief overview of this feature request in a few sentences -->

## ❓ Motivation

<!-- Summarize motivation/background of this feature request. Why should our SDK have this feature? -->

## 🎨 Description

<!-- Describe a detailed description of this feature request -->

## 📚 References

<!-- Put a list of external links related to this issue (if any) -->
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Task Template
about: Create a task
title: ''
labels: ['task']
assignees: ''
---

<!-- Edit issue title -->

## 📝 Overview

<!-- Write a brief overview of this task in a few sentences -->

## 🖋 Details

<!-- Describe the details of this task. Divide the task into sub-tasks (if appropriate) -->

## 📚 References

<!-- Put a list of external links related to this issue (if any) -->
18 changes: 18 additions & 0 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: install dependencies
description: set up python & install dependencies

runs:
using: composite
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install poetry
shell: bash
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
shell: bash
run: |
poetry lock --no-update
poetry install
24 changes: 24 additions & 0 deletions .github/actions/publish-package/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: publish package
description: publish package to PyPI
inputs:
pypi-token:
description: 'PyPI authentication token'
required: true
working-directory:
description: 'working directory'
required: true

runs:
using: composite
steps:
- name: build & package
shell: bash
run: |
cd ${{ inputs.working-directory }}
poetry build
- name: publish package
shell: bash
run: |
cd ${{ inputs.working-directory }}
poetry config pypi-token.pypi ${{ inputs.pypi-token }}
poetry publish
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Edit PR title -->

## 🎨 Overview

<!-- Write a brief overview of the changes in a few sentences -->

## 🌈 Details

<!-- Provide a detailed description of the changes -->

-

## 📚 References

<!-- Put a list of external links related to this PR (if any) -->
6 changes: 6 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
template: |
## 変更点

$CHANGES

**完全な変更履歴**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
73 changes: 73 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: run static checks

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

permissions:
contents: read
pull-requests: read

jobs:
detect-changes:
runs-on: ubuntu-latest
timeout-minutes: 3
permissions:
pull-requests: read
outputs:
root: ${{ steps.filter.outputs.root }}
sdk: ${{ steps.filter.outputs.sdk }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
root:
- '.github/**'
- 'docs/**'
- 'README.md'
- 'pyproject.toml'
- 'poetry.lock'
sdk:
- 'jpyc_sdk/**'
- 'tests/**'
- 'pyproject.toml'

check-root:
needs: detect-changes
if: ${{ needs.detect-changes.outputs.root == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- name: format check
run: poetry run black --check .github docs README.md

check-sdk:
needs: detect-changes
if: ${{ needs.detect-changes.outputs.sdk == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- name: type check
run: poetry run mypy jpyc_sdk
- name: lint check
run: poetry run black --check jpyc_sdk tests
- name: run tests
run: poetry run pytest
27 changes: 27 additions & 0 deletions .github/workflows/create-release-pr.yml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: create release PR

on:
push:
branches:
- develop

jobs:
create-release-pr:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: create release PR
env:
GIT_PR_RELEASE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PR_RELEASE_BRANCH_PRODUCTION: main
GIT_PR_RELEASE_BRANCH_STAGING: develop
GIT_PR_RELEASE_TEMPLATE: .github/.git-pr-release
GIT_PR_RELEASE_LABELS: release
TZ: Asia/Tokyo
run: |
gem install -N git-pr-release -v "2.2.0"
git-pr-release --no-fetch
53 changes: 53 additions & 0 deletions .github/workflows/deploy-docs.yml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: deploy docs

on:
push:
branches:
- main
paths:
- 'docs/**'
- 'jpyc_sdk/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- name: format check
run: poetry run black --check docs jpyc_sdk

build:
needs: format
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- name: build docs
run: |
poetry run sphinx-apidoc -f -o docs/api jpyc_sdk
poetry run sphinx-build -b html -a -E docs docs/_build/html
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: './docs/_build/html'

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment
Loading
Loading