Skip to content

fixed lint

fixed lint #65

Workflow file for this run

name: Publish distributions to PyPI
on: push
jobs:
build-n-publish:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install build
run: python3 -m pip install -U build
- name: Replace Raw
run: python3 -c "lines = open('README.rst', 'r').readlines(); header = open('PYPIHEADER.rst', 'r').readlines(); open('README.rst', 'w').writelines(header + ['\n'] + lines[14:])"
- name: Build
run: python3 -m build --outdir dist/
- name: Publish
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
update-docs-requirements:
name: Update docs requirements
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Update requirements.txt
if: startsWith(github.ref, 'refs/tags')
run: cd docs/ && pip-compile requirements.in > requirements.txt
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Docs requirements automatic updates
file_pattern: '*.txt'
skip_dirty_check: false