Skip to content

Bump neuro-extras from 23.7.0 to 23.7.1 #1108

Bump neuro-extras from 23.7.0 to 23.7.1

Bump neuro-extras from 23.7.0 to 23.7.1 #1108

Workflow file for this run

name: CI
on:
push:
branches: [master]
tags: [v*]
pull_request:
branches: [master]
pull_request_target:
branches: [master]
schedule:
- cron: 0 6 * * * # Daily 6AM UTC build
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
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Cache pre-commit hooks
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|py3.9|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Cache PyPI
uses: actions/cache@v3
with:
key: lint-${{ hashFiles('pyproject.toml', 'poetry.lock') }}
path: ~/.cache/pip
restore-keys: |
lint-
- name: Install dependencies
run: |
pip install poetry
make setup
- name: Run linters
run: |
make lint
env:
CI_LINT_RUN: 1
- name: Save the package version
id: version
run: |
echo "version=$(poetry version --short)" >> $GITHUB_OUTPUT
- name: Show version
run: |
echo ${{ steps.version.outputs.version }}
deploy:
name: Deploy on PyPI
environment: release
needs: [lint]
runs-on: ubuntu-latest
# Run only on pushing a tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Sanity check for tag and version
run: |
if [ "refs/tags/v${{ needs.lint.outputs.version }}" != "${{ github.ref }}" ]
then
echo "Tag ${{ github.ref }} mismatches with ${{ needs.lint.outputs.version }}"
exit 1
else
echo "Tag matches version ${{ needs.lint.outputs.version }}"
fi
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install poetry
run: |
pip install poetry
- name: Build package
run: |
poetry build
- name: GitHub Release
uses: aio-libs/create-release@v1.6.6
with:
changes_file: CHANGELOG.md
name: Neuro
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
version: ${{ needs.lint.outputs.version }}
start_line: "[comment]: # (release notes start)"
head_line: "Neuro {version}\\s+\\({date}\\)\n====+\n?"
fix_issue_regex: "\\(\\[#(\\d+)\\]\\(https://github.com/neuro-inc/[^/]+/issues/\\1\\)\\)"
fix_issue_repl: "(#\\1)"