[REFACTOR] Centralize handling of Python version #433
Workflow file for this run
This file contains hidden or 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
# -*- mode: yaml; -*- | |
# Time-stamp: <Tue 2022-08-30 14:58 svarrette> | |
################################################################################ | |
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
# | |
name: Test Build ULHPC Technical Documention | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Read Python version | |
id: pyversion | |
run: echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
mkdocs --version | |
- name: build ULHPC documentation | |
run: mkdocs build | |
# run: mkdocs build --strict |