Skip to content

Commit

Permalink
Bump to 21.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Sep 24, 2021
1 parent 2622bc7 commit 6601b3d
Show file tree
Hide file tree
Showing 7 changed files with 187 additions and 187 deletions.
360 changes: 180 additions & 180 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,178 +17,178 @@ concurrency:

jobs:

# lint:
# name: Linter
# runs-on: ubuntu-latest
# if: |
# (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') ||
# (github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]')
# timeout-minutes: 5
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - name: Setup Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Cache pre-commit hooks
# uses: actions/cache@v2
# with:
# path: ~/.cache/pre-commit
# key: pre-commit|py3.9|${{ hashFiles('.pre-commit-config.yaml') }}
# - name: Cache PyPI
# uses: actions/cache@v2
# with:
# key: pip-lint-${{ hashFiles('requirements/*.txt') }}
# path: ~/.cache/pip
# restore-keys: |
# pip-lint-
# - name: Install dependencies
# uses: py-actions/py-dependency-install@v2
# with:
# path: requirements/ci.txt
# - name: Run linters
# run: |
# make lint
# env:
# CI_LINT_RUN: 1
# - name: Install spell checker
# run: |
# sudo apt install libenchant-dev
# pip install -r requirements/doc.txt
# - name: Run docs spelling
# run: |
# make api-doc-spelling
lint:
name: Linter
runs-on: ubuntu-latest
if: |
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]')
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Cache pre-commit hooks
uses: actions/cache@v2
with:
path: ~/.cache/pre-commit
key: pre-commit|py3.9|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Cache PyPI
uses: actions/cache@v2
with:
key: pip-lint-${{ hashFiles('requirements/*.txt') }}
path: ~/.cache/pip
restore-keys: |
pip-lint-
- name: Install dependencies
uses: py-actions/py-dependency-install@v2
with:
path: requirements/ci.txt
- name: Run linters
run: |
make lint
env:
CI_LINT_RUN: 1
- name: Install spell checker
run: |
sudo apt install libenchant-dev
pip install -r requirements/doc.txt
- name: Run docs spelling
run: |
make api-doc-spelling
# unit:
# name: Unit
# needs: lint
# strategy:
# matrix:
# python-version: [3.6, 3.7, 3.8, 3.9]
# os: [ubuntu, macos, windows]
# cmd: [sdk, cli]
# exclude:
# - os: macos # temporarily exclude
# - python-version: 3.7
# os: macos
# - python-version: 3.7
# os: windows
# - python-version: 3.8
# os: macos
# - python-version: 3.8
# os: windows
# fail-fast: false
# runs-on: ${{ matrix.os }}-latest
# timeout-minutes: 15
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Setup Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Get pip cache dir
# id: pip-cache
# run: |
# echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
# - name: Cache PyPI
# uses: actions/cache@v2
# with:
# key: pip-ci-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements/*.txt')
# }}
# path: ${{ steps.pip-cache.outputs.dir }}
# restore-keys: |
# pip-ci-${{ runner.os }}-${{ matrix.python-version }}-
# - name: Install dependencies
# uses: py-actions/py-dependency-install@v2
# with:
# path: requirements/ci.txt
# - name: Run unittests
# env:
# COLOR: yes
# run: |
# make .test-${{ matrix.cmd }} PYTEST_ARGS=-vvv
# - name: Upload coverage artifact
# uses: neuro-inc/[email protected]
# with:
# key: unit-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.cmd }}
unit:
name: Unit
needs: lint
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu, macos, windows]
cmd: [sdk, cli]
exclude:
- os: macos # temporarily exclude
- python-version: 3.7
os: macos
- python-version: 3.7
os: windows
- python-version: 3.8
os: macos
- python-version: 3.8
os: windows
fail-fast: false
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
- name: Cache PyPI
uses: actions/cache@v2
with:
key: pip-ci-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements/*.txt')
}}
path: ${{ steps.pip-cache.outputs.dir }}
restore-keys: |
pip-ci-${{ runner.os }}-${{ matrix.python-version }}-
- name: Install dependencies
uses: py-actions/py-dependency-install@v2
with:
path: requirements/ci.txt
- name: Run unittests
env:
COLOR: yes
run: |
make .test-${{ matrix.cmd }} PYTEST_ARGS=-vvv
- name: Upload coverage artifact
uses: neuro-inc/[email protected]
with:
key: unit-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.cmd }}

# e2e:
# name: E2E
# needs: unit
# strategy:
# matrix:
# python-version: [3.6, 3.7, 3.8, 3.9]
# os: [ubuntu, macos, windows]
# exclude:
# - os: macos # temporarily exclude
# - python-version: 3.7
# os: macos
# - python-version: 3.7
# os: windows
# - python-version: 3.8
# os: macos
# - python-version: 3.8
# os: windows
# fail-fast: false
# runs-on: ${{ matrix.os }}-latest
# timeout-minutes: 90
# continue-on-error: true
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Setup Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Get pip cache dir
# id: pip-cache
# run: |
# echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
# - name: Cache PyPI
# uses: actions/cache@v2
# with:
# key: pip-ci-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements/*.txt')
# }}
# path: ${{ steps.pip-cache.outputs.dir }}
# restore-keys: |
# pip-ci-${{ runner.os }}-${{ matrix.python-version }}-
# - name: Install dependencies
# uses: py-actions/py-dependency-install@v2
# with:
# path: requirements/ci.txt
# - name: Run E2E tests
# timeout-minutes: 75
# env:
# E2E_TOKEN: ${{ secrets.E2E_TOKEN }}
# E2E_USER_TOKEN: ${{ secrets.E2E_USER_TOKEN }}
# PYTEST_XDIST_NUM_THREADS: 16
# COLOR: yes
# run: |
# make .e2e
# - name: Upload coverage artifact
# uses: neuro-inc/[email protected]
# with:
# key: e2e-${{ matrix.python-version }}-${{ matrix.os }}
e2e:
name: E2E
needs: unit
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu, macos, windows]
exclude:
- os: macos # temporarily exclude
- python-version: 3.7
os: macos
- python-version: 3.7
os: windows
- python-version: 3.8
os: macos
- python-version: 3.8
os: windows
fail-fast: false
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 90
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
- name: Cache PyPI
uses: actions/cache@v2
with:
key: pip-ci-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements/*.txt')
}}
path: ${{ steps.pip-cache.outputs.dir }}
restore-keys: |
pip-ci-${{ runner.os }}-${{ matrix.python-version }}-
- name: Install dependencies
uses: py-actions/py-dependency-install@v2
with:
path: requirements/ci.txt
- name: Run E2E tests
timeout-minutes: 75
env:
E2E_TOKEN: ${{ secrets.E2E_TOKEN }}
E2E_USER_TOKEN: ${{ secrets.E2E_USER_TOKEN }}
PYTEST_XDIST_NUM_THREADS: 16
COLOR: yes
run: |
make .e2e
- name: Upload coverage artifact
uses: neuro-inc/[email protected]
with:
key: e2e-${{ matrix.python-version }}-${{ matrix.os }}

# upload-cov:
# name: Upload coverage
# needs: [unit, e2e]
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# ref: ${{ github.sha }}
# - name: Upload coverage
# uses: neuro-inc/[email protected]
upload-cov:
name: Upload coverage
needs: [unit, e2e]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.sha }}
- name: Upload coverage
uses: neuro-inc/[email protected]

deploy:
name: Deploy
# needs: e2e
needs: e2e
runs-on: ubuntu-latest
# Run only on pushing a tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Expand All @@ -211,20 +211,20 @@ jobs:
run: |
cd neuro-cli
python setup.py sdist bdist_wheel
# - name: PyPI upload SDK
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_SDK }}
# TWINE_NON_INTERACTIVE: 1
# run: |
# twine upload neuro-sdk/dist/*
# - name: PyPI upload CLI
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_CLI }}
# TWINE_NON_INTERACTIVE: 1
# run: |
# twine upload neuro-cli/dist/*
- name: PyPI upload SDK
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_SDK }}
TWINE_NON_INTERACTIVE: 1
run: |
twine upload neuro-sdk/dist/*
- name: PyPI upload CLI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_CLI }}
TWINE_NON_INTERACTIVE: 1
run: |
twine upload neuro-cli/dist/*
- name: Merge dists for GitHub Release
run: |
mkdir dist
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[comment]: # (towncrier release notes start)

Neuro SDK/CLI 21.9.3a2 (2021-09-24)
Neuro SDK/CLI 21.9.3 (2021-09-24)
===================================

Features
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Global version number,
# Update the file and run 'make fmt' to apply it everywhere

21.9.3a2
21.9.3
Loading

0 comments on commit 6601b3d

Please sign in to comment.