RAPTOR v18.4: Исправлена отчетность, активированы выходные
This commit is contained in:
35
invest-python-master/.github/workflows/bumpversion.yml
vendored
Normal file
35
invest-python-master/.github/workflows/bumpversion.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Bump version
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "tinkoff/**"
|
||||
- "!tinkoff/invest/__init__.py"
|
||||
- "!tinkoff/invest/constants.py"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.BOT_ACCESS_TOKEN }}
|
||||
|
||||
- name: Git user
|
||||
run: |
|
||||
git config --local user.name 'github-actions[bot]'
|
||||
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
|
||||
- name: Install python dependencies
|
||||
run: make install-poetry install-bump
|
||||
|
||||
- name: Bump version
|
||||
run: make bump-version v=$(make next-version)
|
||||
|
||||
- name: Push
|
||||
run: |
|
||||
git push
|
||||
git push --tags
|
||||
49
invest-python-master/.github/workflows/check.yml
vendored
Normal file
49
invest-python-master/.github/workflows/check.yml
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
name: CI Tests/Lints
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-ubuntu:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.8'
|
||||
|
||||
- name: Install python dependencies
|
||||
run: make install-poetry install
|
||||
|
||||
- name: Run linters
|
||||
run: make lint
|
||||
|
||||
- name: Test docs
|
||||
run: make docs
|
||||
|
||||
- name: Run test
|
||||
run: make test
|
||||
env:
|
||||
INVEST_SANDBOX_TOKEN: ${{ secrets.INVEST_SANDBOX_TOKEN }}
|
||||
INVEST_TOKEN: ${{ secrets.INVEST_TOKEN }}
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install make
|
||||
run: choco install make
|
||||
|
||||
- name: Install python dependencies
|
||||
run: make install-poetry install
|
||||
|
||||
- name: Run test
|
||||
run: make test
|
||||
env:
|
||||
INVEST_SANDBOX_TOKEN: ${{ secrets.INVEST_SANDBOX_TOKEN }}
|
||||
16
invest-python-master/.github/workflows/check_pr_title.yml
vendored
Normal file
16
invest-python-master/.github/workflows/check_pr_title.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: Check PR title
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- edited
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: aslafy-z/conventional-pr-title-action@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
24
invest-python-master/.github/workflows/github_pages.yml
vendored
Normal file
24
invest-python-master/.github/workflows/github_pages.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install python dependencies
|
||||
run: make install-poetry install-docs
|
||||
|
||||
- name: Generate docs
|
||||
run: make docs
|
||||
|
||||
- name: Deploy pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./site
|
||||
25
invest-python-master/.github/workflows/pypi.yml
vendored
Normal file
25
invest-python-master/.github/workflows/pypi.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Publish to PYPI
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install poetry
|
||||
run: make install-poetry
|
||||
|
||||
- name: Publish package to pypi
|
||||
run: make publish
|
||||
env:
|
||||
pypi_username: ${{ secrets.PYPI_USERNAME }}
|
||||
pypi_password: ${{ secrets.PYPI_PASSWORD }}
|
||||
Reference in New Issue
Block a user