[Fix] docs build warning #2922
Workflow file for this run
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
name: 🌼 Release checks | |
# on: [push, pull_request] | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
cd $GITHUB_WORKSPACE && pip install .[test] | |
- name: Run README_examples.py | |
run: | | |
cd $GITHUB_WORKSPACE/docs/readme | |
python README_examples.py | |
- name: Build package and test with twine | |
run: | | |
python -m pip install --upgrade setuptools pip wheel twine | |
python setup.py sdist bdist_wheel | |
python -m twine check dist/* |