docs: improve smv_released_pattern
section
#51
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
name: build | |
on: | |
pull_request: | |
workflow_call: | |
jobs: | |
build: | |
name: Build and Test Package | |
strategy: | |
matrix: | |
version: | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
os: [ubuntu-latest, windows-latest] | |
include: | |
- version: '3.12' | |
os: ubuntu-latest | |
upload: true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Install packages | |
run: pip install . | |
- name: Run tests | |
run: python -m unittest discover -v | |
- name: Build documentation | |
run: |- | |
mkdir html | |
git fetch --all | |
python -I -m sphinx_multiversion -W docs html | |
cp assets/gh-pages-redirect.html html/index.html | |
- name: Upload the Docs | |
uses: actions/upload-pages-artifact@v3 | |
if: matrix.upload | |
with: | |
path: html/ | |
- name: Install pypa/build | |
run: pip install build | |
- name: Build a binary wheel and a source tarball | |
run: python3 -m build | |
- name: Store the distribution packages | |
if: matrix.upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: python-package-distributions | |
path: dist/ |