Skip to content

update CI

update CI #42

Workflow file for this run

name: Build, test and deploy
on: [push, pull_request, workflow_dispatch]
env:
PYTHONWARNINGS: all
jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python: [3.12, 3.13, 3.14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}-
- name: Install dependencies
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Build package
run: pip install -e .
- name: Run tests
run: pytest fuzzytree
- name: Build docs
if: matrix.os == 'ubuntu-latest' && matrix.python == 3.14
run: |
make -C doc/ html
touch doc/_build/html/.nojekyll
- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@v4
if: matrix.os == 'ubuntu-latest' && matrix.python == 3.14
with:
branch: gh-pages
folder: doc/_build/html