Skip to content

Build CI

Build CI #307

Workflow file for this run

# SPDX-FileCopyrightText: 2022 Alec Delaney
#
# SPDX-License-Identifier: MIT
name: Build CI
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up latest Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Checkout repo
uses: actions/checkout@v3
- name: Install dev tools
run: |
pip install -r requirements-dev.txt
- name: Run pre-commit via make
run: |
make check
- name: Build docs
working-directory: docs
run: sphinx-build -E -W -b html . _build/html
- name: Build Python package
run: |
pip install --upgrade build twine
find -type f -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) -exec sed -i -e "s/0.0.0+auto.0/1.2.3/" {} +
python -m build
twine check dist/*