Skip to content

build

build #517

Workflow file for this run

---
name: build
# -----------------
# Control variables (GitHub Secrets)
# -----------------
#
# At the GitHub 'organisation' or 'project' level you must have the following
# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
#
# (none)
#
# -----------
# Environment (GitHub Environments)
# -----------
#
# Environment (none)
on:
push:
branches:
- '**'
tags-ignore:
- '**'
schedule:
# Build daily at 6:04am...
- cron: '4 6 * * *'
env:
POETRY_VERSION: '1.8.5'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.13'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir poetry==$POETRY_VERSION
poetry install --with dev --no-root --no-directory
- name: Test
run: |
poetry run pre-commit run --all-files
poetry run coverage run --module pytest -Werror
poetry run coverage report
- name: Build
run: |
poetry build --format wheel