-
Notifications
You must be signed in to change notification settings - Fork 52
32 lines (30 loc) · 994 Bytes
/
main.yml
File metadata and controls
32 lines (30 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: build
on: [ push, pull_request ]
jobs:
main:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v6
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies 📦
run: sudo apt-get update && sudo apt-get install -y dh-python devscripts debhelper pybuild-plugin-pyproject build-essential python3-all
- name: Install package and doc requirements 📦
run: |
pip3 install .
pip3 install ".[dev]"
pip3 install ".[docs]"
pip3 install ".[release]"
- name: build docs 🏗️
run: cd docs && zensical build --clean --strict
- name: run flake8 ⚙️
run: flake8
- name: build Python package 🏗️
run: python3 -m build
- name: build Debian package 🏗️
run: sudo debuild -b -uc -us