Skip to content

[CI] Run Vale in pre-commit to spellcheck documentation #8

[CI] Run Vale in pre-commit to spellcheck documentation

[CI] Run Vale in pre-commit to spellcheck documentation #8

Workflow file for this run

name: Test build
on:
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
python:
- "3.8" # oldest Python supported by PSF
- "3.9"
- "3.10"
- "3.11"
- "3.12" # newest stable Python
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with: {fetch-depth: 0} # deep clone for setuptools-scm
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Run pre-commit
uses: pre-commit/[email protected]
- name: Install requirements
run: |
pip3 install --upgrade pip
pip3 install setuptools setuptools_scm cmake wheel scikit-build ninja
- name: Build package
run: |
python3 setup.py sdist
- uses: actions/upload-artifact@v4
if: ${{ matrix.python == 3.12 }}
with:
name: python-package
path: dist/