Sbachmei/mic 5643/publish docs #1886
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
# ----------------------------------------------------------------------------- | |
# - invoked on push, pull_request, or manual trigger | |
# - tests under multiple versions of python | |
# - only quick tests are run here | |
# | |
# NOTE: We do not run tests marked as slow nor do we schedule runs here. | |
# Slow tests and scheduled runs are handled via Jenkins because that has | |
# access to the cluster which is required for some tests. | |
# ----------------------------------------------------------------------------- | |
name: build | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Print environment values | |
run: | | |
python --version | |
cat $GITHUB_ENV | |
- name: Update pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Lint | |
run: | | |
pip install black==22.3.0 isort | |
black . --check --diff | |
isort . --check --verbose --only-modified --diff | |
- name: Install dependencies | |
run: | | |
pip install .[dev] | |
- name: Test | |
run: | | |
pytest ./tests | |
- name: Build Docs | |
run: | | |
pip install -r docs/requirements.txt | |
make html -C docs/ SPHINXOPTS="-W --keep-going -n" | |