Create new-ci.yml #6
Workflow file for this run
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
# This is the build workflow | |
name: Build | |
# Controls when the workflow will run | |
on: | |
push: | |
pull_request: | |
workflow_call: | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build: | |
name: Build | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
# Read python version from a file .python-version | |
# python-version-file: ".python-version" | |
cache: "poetry" | |
- run: which poetry | |
# From: https://github.com/knowsuchagency/poetry-install | |
- name: Install dependencies | |
# run: | | |
# pip install -U pip | |
# pip install poetry==1.7.1 | |
# poetry install | |
run: | | |
pip install poetry==1.7.1 | |
poetry install | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
- name: Setup MkDocs cache | |
uses: actions/cache@v3 | |
with: | |
key: mkdocs-material-${{ env.cache_id }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
- name: Build MkDocs site | |
run: poetry run mkdocs build |