Skip to content

CI

CI #44

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
# manually triggered
schedule:
- cron: "0 12 * * 5"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout the repository
uses: actions/checkout@main
- name: Install the default version of uv
id: setup-uv
uses: astral-sh/setup-uv@v3
- name: Print the installed version
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Tests
run: |
uv venv
uv pip install ".[testing]"
.venv/bin/pytest tests
.venv/bin/pylint --rcfile=.pylintrc gossip tests
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@main
- name: Install the default version of uv
id: setup-uv
uses: astral-sh/setup-uv@v3
- name: Print the installed version
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
- name: Building docs
run: |
uv venv --python 3.11
uv pip install ".[doc]"
.venv/bin/sphinx-build -a -W -E doc build/sphinx/html