benchmark: use timeit
for measuring execution times
#179
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: Build and Deploy Documentation | |
on: | |
push: | |
branches: | |
- main # or your default branch name | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10.13 | |
- name: Install pandoc | |
run: sudo apt-get install -y pandoc | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Install dependencies | |
run: | | |
poetry config virtualenvs.create false | |
poetry install --no-interaction | |
- name: Build documentation | |
run: | | |
cd docs | |
poetry run make html | |
- name: Debug information | |
run: | | |
echo "Current directory:" | |
pwd | |
echo "Directory contents:" | |
ls -R | |
echo "Docs directory contents:" | |
ls -R docs | |
- name: List contents of build directory | |
run: ls -R docs/_build/html | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/html | |
force_orphan: true |