File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
1010
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v3
13+ - uses : actions/checkout@v4
1414 with :
1515 fetch-depth : 0
1616 - name : Set up Python 3.10
17- uses : actions/setup-python@v4
17+ uses : actions/setup-python@v5
1818 with :
1919 python-version : " 3.10"
2020 - name : Build dev environment
2727 env :
2828 PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
2929 run : make release
30- - name : Update docs
31- env :
32- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33- run : make docs
Original file line number Diff line number Diff line change 1313 python-version : ["3.10", "3.11"]
1414
1515 steps :
16- - uses : actions/checkout@v3
16+ - uses : actions/checkout@v4
1717 - name : Set up Python ${{ matrix.python-version }}
18- uses : actions/setup-python@v4
18+ uses : actions/setup-python@v5
1919 with :
2020 python-version : ${{ matrix.python-version }}
2121 - name : Build dev environment
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2-
3- rm -r .venv 2> /dev/null
4- rm .coverage 2> /dev/null
5- rm -r htmlcov 2> /dev/null
6- rm .git/hooks/pre-commit 2> /dev/null
7- find . -name ' __pycache__' -exec rm -rv {} \; 2> /dev/null
8- find . -name ' *.egg-info' -exec rm -rv {} \; 2> /dev/null
9- find . -name ' .pytest_cache' -exec rm -rv {} \; 2> /dev/null
10- rm ./dist -r 2> /dev/null
2+ (
3+ rm -r .venv
4+ rm .coverage
5+ rm -r htmlcov
6+ rm .git/hooks/pre-commit
7+ find . -name ' __pycache__' -exec rm -rv {} \;
8+ find . -name ' *.egg-info' -exec rm -rv {} \;
9+ find . -name ' .pytest_cache' -exec rm -rv {} \;
10+ rm ./dist -r
11+ ) 2> /dev/null
1112
1213echo Cleaned project
Original file line number Diff line number Diff line change @@ -4,9 +4,12 @@ source .venv/bin/activate
44
55package_name=$( echo " $1 " | tr ' -' ' _' )
66
7- # Run pytest with coverage reports and tee output
7+ # Run pytest with coverage reports, teeing text output for LLMs to read
88mkdir -p htmlcov
9- pytest --cov=" src/$package_name " --cov-report=html --cov-report=term-missing . 2>&1 | tee htmlcov/coverage_report.txt
9+ pytest --cov=" src/$package_name " \
10+ --cov-report=html \
11+ --cov-report=term-missing \
12+ --cov-context=test . 2>&1 | tee htmlcov/coverage_report.txt
1013
1114# Extract just the missing coverage summary
1215grep -A 20 " Missing" htmlcov/coverage_report.txt > htmlcov/missing_coverage.txt || true
Original file line number Diff line number Diff line change 44
55# Variables
66PROJECT_NAME=$( basename " $( pwd) " )
7+ MODULE_NAME=$( echo " $PROJECT_NAME " | tr ' -' ' _' )
78REPO_URL=" ssh://git@github.com/bitplane/bitplane.net.git"
89SRC_PATH=" docs"
910DEST_PATH=" dev/python/$PROJECT_NAME "
@@ -14,7 +15,7 @@ COMMIT_MSG="Update $PROJECT_NAME docs"
1415
1516mkdir -p docs/pydoc
1617cd src
17- pydoc-markdown -p " $PROJECT_NAME " > ../docs/pydoc/index.md
18+ pydoc-markdown -p " $MODULE_NAME " > ../docs/pydoc/index.md
1819cd ..
1920
2021# Check out the main website repo
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- python3 -m venv .venv
3+ # create the python virtual environment
4+ if [[ ! -d .venv ]]; then
5+ if command -v uv > /dev/null 2>&1 ; then
6+ uv venv
7+ else
8+ python3 -m venv .venv
9+ fi
10+ fi
11+
12+ # activate it
413source .venv/bin/activate
You can’t perform that action at this time.
0 commit comments