Skip to content

Commit

Permalink
add actions configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jstzwj committed Jan 31, 2024
1 parent ddb3ab2 commit 29f853b
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
30 changes: 30 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ChatProto GitHub Actions for Development
run-name: ChatProto GitHub Actions for Development
on:
push:
branches: [ "main", "dev" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11"]

steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install ChatProto
run: |
cd ${{ github.workspace }}
pip install --upgrade pip
pip install -e .
- name: Test ChatProto
run: |
cd ${{ github.workspace }}
python -m unittest discover ChatProto/tests
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: ChatProto GitHub Actions to release
run-name: ChatProto GitHub Actions to release
on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11"]

steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install ChatProto
run: |
cd ${{ github.workspace }}
pip install --upgrade pip
pip install -e .
- name: Test ChatProto
run: |
cd ${{ github.workspace }}
python -m unittest discover ChatProto/tests
- name: Build ChatProto
run: |
cd ${{ github.workspace }}
pip install build
python -m build
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
dist/*.tar.gz
dist/*.whl

0 comments on commit 29f853b

Please sign in to comment.