变更
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Description
|
||||
|
||||
Please describe your problem/feature request/bug
|
||||
|
||||
# Step to Reproduce
|
||||
|
||||
Please offer the steps to reproduce your problem/bug
|
||||
|
||||
# Error log
|
||||
|
||||
Please provide error message or screen shot for better understanding.
|
||||
@@ -0,0 +1,25 @@
|
||||
# Description
|
||||
|
||||
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
|
||||
|
||||
Fixes #(issue)
|
||||
|
||||
# How Has This Been Tested?
|
||||
|
||||
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
|
||||
- [] pytest
|
||||
- [] Other test (please specify)
|
||||
|
||||
# Test Configuration:
|
||||
- OS version:
|
||||
- Necessary Libraries (optional):
|
||||
|
||||
# Checklist:
|
||||
- [] My code follows the style guidelines of this project
|
||||
- [] I have performed a self-review of my code
|
||||
- [] I have commented my code, particularly in hard-to-understand areas
|
||||
- [] I have made corresponding changes to the documentation
|
||||
- [] My changes generate no new warnings
|
||||
- [] I have added tests that prove my fix is effective or that my feature works
|
||||
- [] New and existing unit tests pass locally with my changes
|
||||
- [] Any dependent changes have been merged and published in downstream modules
|
||||
@@ -0,0 +1,31 @@
|
||||
# This is GitHub Action for cross platform building
|
||||
name: build
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
builds:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
python-version: ["3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Run build
|
||||
env:
|
||||
TOXENV: build
|
||||
run: |
|
||||
pip install -r requirements-tests.txt
|
||||
tox
|
||||
@@ -0,0 +1,41 @@
|
||||
# This is GitHub Action for linting and security check
|
||||
name: check
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
concurrency:
|
||||
group: ${{github.workflow}}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
checks:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.12"]
|
||||
env: [security, flake8]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Run check
|
||||
env:
|
||||
TOXENV: ${{ matrix.env }}
|
||||
run: |
|
||||
pip install -r requirements-tests.txt
|
||||
tox
|
||||
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pre-commit/action@v3.0.0
|
||||
@@ -0,0 +1,30 @@
|
||||
# This is GitHub Action for cross platform building
|
||||
name: docs
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
builds:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Build docs
|
||||
env:
|
||||
TOXENV: docs
|
||||
run: |
|
||||
pip install -r requirements-tests.txt
|
||||
tox
|
||||
@@ -0,0 +1,43 @@
|
||||
# This is GitHub Action for tests
|
||||
name: test
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.12"]
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis
|
||||
options: >-
|
||||
--health-cmd "redis-cli ping"
|
||||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
|
||||
container: python:${{ matrix.python-version }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Run pytest
|
||||
env:
|
||||
REDIS_HOST: redis
|
||||
TOXENV: pytest
|
||||
TOX_TESTENV_PASSENV: REDIS_HOST
|
||||
run: |
|
||||
pip install -r requirements-tests.txt
|
||||
tox
|
||||
Reference in New Issue
Block a user