Merge pull request #99 from tekktrik/dev/update-ci #305
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
# 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 hooks | |
run: | | |
pre-commit run --all-files | |
- 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/* |