Skip to content

chore(linter): add isort & black #36

chore(linter): add isort & black

chore(linter): add isort & black #36

Workflow file for this run

name: Release
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
- run: pip install -r requirements.txt
- uses: isort/isort-action@master
with:
isortVersion: '5.12.0'
- uses: psf/black@stable
with:
version: '23.9.0'
semantic-release:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
# wait until test & lint complete
needs: ['lint']
# needs: ['lint', 'test']
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 'lts/hydrogen'
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- run: pip install -r requirements.txt
- run: pip install twine setuptools wheel
- name: install dependencies
env:
SEMANTIC_PYTHON_POST_INSTALL: 'false'
run: npm i --no-save semantic-release-python
- name: Semantic Release
id: release
uses: cycjimmy/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
semantic_version: 18
extra_plugins: |
@semantic-release/git
@semantic-release/changelog
semantic-release-pypi