-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring documentation into a much better place
- Loading branch information
Showing
4 changed files
with
701 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,13 +33,13 @@ jobs: | |
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Checkout | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
|
||
- name: Pre-commit | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
pytest: | ||
|
@@ -74,13 +74,37 @@ jobs: | |
- name: Run pytest | ||
run: poetry run pytest | ||
|
||
usage: | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Poetry | ||
run: pipx install poetry | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
cache: poetry | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Check usage.md is up-to-date | ||
run: | | ||
./generate-usage.sh | ||
git diff --exit-code | ||
all-checks-passed: | ||
if: always() | ||
|
||
needs: | ||
- mypy | ||
- pre-commit | ||
- pytest | ||
- usage | ||
|
||
runs-on: ubuntu-24.04 | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
typer alga.__main__ utils docs --name alga --title "Available commands" --output usage.md |
Oops, something went wrong.