fix: bad exception management (#10) #41
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: Doc | |
# If a pull-request is pushed then cancel all previously running jobs related | |
# to that pull-request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
PY_COLORS: 1 | |
jobs: | |
sphinx: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4.1.0 | |
- name: Set up Python | |
uses: actions/setup-python@v4.7.0 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: pip install tox | |
- name: Build doc | |
env: | |
TOXENV: doc | |
run: tox | |
- name: Archive generated doc | |
uses: actions/upload-artifact@v3.1.3 | |
with: | |
name: html-doc | |
path: docs/_build/sphinx/html/ | |
twine-check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4.1.0 | |
- name: Set up Python | |
uses: actions/setup-python@v4.7.0 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: pip install tox twine wheel | |
- name: Check twine readme rendering | |
env: | |
TOXENV: twine-check | |
run: tox |