|
|
|
@ -11,24 +11,13 @@ jobs:
|
|
|
|
|
steps:
|
|
|
|
|
- name: Check out repository
|
|
|
|
|
uses: actions/checkout@v3.2.0
|
|
|
|
|
- name: Set up Python
|
|
|
|
|
- name: Set up Python 3.x
|
|
|
|
|
uses: actions/setup-python@v4.4.0
|
|
|
|
|
with:
|
|
|
|
|
python-version: "3.10"
|
|
|
|
|
python-version: "3.x"
|
|
|
|
|
- name: Install Poetry
|
|
|
|
|
uses: snok/install-poetry@v1.3
|
|
|
|
|
with:
|
|
|
|
|
virtualenvs-create: true
|
|
|
|
|
- name: Load cached virtual environment
|
|
|
|
|
id: cached-poetry-dependencies
|
|
|
|
|
uses: actions/cache@v3.2.3
|
|
|
|
|
with:
|
|
|
|
|
path: .venv
|
|
|
|
|
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
|
|
|
|
|
run: poetry install --no-interaction --no-root
|
|
|
|
|
- name: Install package
|
|
|
|
|
run: poetry install --no-interaction
|
|
|
|
|
uses: snok/install-poetry@v1.3.3
|
|
|
|
|
- name: Install Package
|
|
|
|
|
run: poetry install
|
|
|
|
|
- name: Build and deploy docs
|
|
|
|
|
run: poetry run mkdocs gh-deploy --clean --strict --verbose --force
|
|
|
|
|