auto-generate docs

This commit is contained in:
Ace 2023-06-03 16:16:34 +02:00
parent 9486006e86
commit d66ea6b27f

View File

@ -19,7 +19,7 @@ jobs:
- name: Clone repo
run: |
git clone --single-branch https://github.com/aceisace/Inkycal
git clone --single-branch https://github.com/aceinnolab/Inkycal
- name: Creating virtual environment
run: |
cd Inkycal
@ -30,6 +30,15 @@ jobs:
run: |
pip install wheel
pip install -e ./
- name: generate docs
run: |
cd docsource
make html
- name: Deploy Docs to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ._build/html
- name: Setup test environment and run tests
env:
OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}
@ -38,5 +47,5 @@ jobs:
TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }}
run: |
cd inkycal/tests
wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json
wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json
for f in *.py; do python3 "$f"; done