fixing gh action

This commit is contained in:
sneakers-the-rat 2023-06-06 18:22:27 -07:00
parent 13a4e9e39b
commit b531c452f0
2 changed files with 13 additions and 33 deletions

View file

@ -14,11 +14,23 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local # the path depends on the OS
key: poetry-0 # increment to reset cache
- name: Install poetry - name: Install poetry
uses: snok/install-poetry@v1.5.1 uses: snok/install-poetry@v1
if: steps.cached-poetry.outputs.cache-hit != 'true'
with: with:
virtualenvs-create: true virtualenvs-create: true
virtualenvs-in-project: true virtualenvs-in-project: true
version: latest
- name: Load cached venv - name: Load cached venv
id: cached-poetry-dependencies id: cached-poetry-dependencies
uses: actions/cache@v2 uses: actions/cache@v2

View file

@ -1,32 +0,0 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: src/conf.py
# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf
# Optionally declare the Python requirements required to build your docs
build:
os: ubuntu-22.04
tools:
python: "3.9"
nodejs: "16"
jobs:
post_create_environment:
- pip install poetry
- poetry config virtualenvs.create false
post_install:
- poetry install
- npm install -g @mermaid-js/mermaid-cli
formats:
- epub
- pdf