Add man page #26
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: Run CI checks | |
on: | |
- push | |
- workflow_call | |
env: | |
CI_POETRY_VERSION: "1.7.1" | |
jobs: | |
ci-checks: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out source tree | |
uses: actions/checkout@v4 | |
- name: Load cached Poetry installation | |
id: load-cached-poetry | |
uses: actions/cache@v4 | |
with: | |
path: ~/.local | |
key: poetry-release-v${{ env.CI_POETRY_VERSION }} | |
- name: Update PATH | |
if: steps.load-cached-poetry.outputs.cache-hit == 'true' | |
run: | | |
echo ~/.local/bin >> "${GITHUB_PATH}" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
if: steps.load-cached-poetry.outputs.cache-hit != 'true' | |
with: | |
version: ${{ env.CI_POETRY_VERSION }} | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Print current package version | |
run: poetry version --no-ansi --no-interaction | |
- name: Use specified Python version | |
uses: actions/setup-python@v5 | |
with: | |
cache: poetry | |
python-version-file: .python-version | |
- name: Install dependencies | |
# See also: | |
# https://github.com/python-poetry/poetry/issues/7184 | |
run: poetry install --no-ansi --no-interaction --no-root | |
- name: Install target package | |
run: poetry install --no-ansi --no-interaction | |
- name: Run static typechecking | |
run: poetry run poe typecheck | |
- name: Run linter | |
run: poetry run poe linter | |
- name: Run unit tests | |
run: poetry run poe tests | |
- name: Run man page generator | |
run: poetry run poe doc |