-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
187 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/') | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.