Skip to content

docs(changelog): record release hardening #1

docs(changelog): record release hardening

docs(changelog): record release hardening #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements*.txt
- name: Install development dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
- name: Run test suite
run: python -m pytest tests/ -v --tb=short
- name: Smoke-test library inspection
run: python examples/inspect_library.py
package:
name: Validate distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
- name: Install release tooling
run: python -m pip install build twine
- name: Build and check distributions
run: |
python -m build
python -m twine check dist/*
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: distributions
path: dist/
if-no-files-found: error