Add script docs/a.sh
to fix bitrot in pdoc3
docs build procedure
#1007
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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get install tidy | |
- name: Configure git | |
run: | | |
git config --global user.email "ki@example.com" | |
git config --global user.name "Ki GithubActions" | |
git --version | |
- name: Install ki | |
run: | | |
pip install pytest wheel | |
pip install . | |
- name: Test package | |
run: | | |
pytest -vv tests/test_package.py | |
./tests/test_subdeck.sh | |
- name: Install test dependencies | |
run: | | |
pip install -r dev-requirements.txt | |
- name: Unit tests | |
run: | | |
pytest -vv --timeout=120 tests/test_ki.py tests/test_parser.py | |
- name: Integration tests | |
run: | | |
pytest -vv --timeout=120 tests/test_integration.py |