Skip to content

fix error line endings (i guess pylint 3 fixed it?) #36

fix error line endings (i guess pylint 3 fixed it?)

fix error line endings (i guess pylint 3 fixed it?) #36

name: check
env:
PYTHON_VERSION: "3.11"
POETRY_VERSION: "1.3.2"
on: push
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ env.POETRY_VERSION }}
- run: poetry lock --check
- run: poetry install
- run: poetry run mypy -p pylint_module_boundaries
- run: poetry run mypy tests
- run: poetry run black --check --diff .
- run: poetry run isort --check --diff .
- run: poetry run flake8 .
- run: poetry run pylint pylint_module_boundaries tests
- run: poetry run pytest
publish:
runs-on: 'ubuntu-latest'
if: github.ref == 'refs/heads/master'
needs: check
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: ${{ env.POETRY_VERSION }}
- name: set token
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
- run: poetry build
- run: poetry publish
- name: get version number
id: current-version
run: echo ::set-output name=CURRENT_VERSION::$(poetry version -s)
- uses: marvinpinto/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: dist/*
automatic_release_tag: ${{ steps.current-version.outputs.CURRENT_VERSION }}