Skip to content

build: use pyproject.toml #2

build: use pyproject.toml

build: use pyproject.toml #2

Workflow file for this run

name: Build Test
on:
push:
pull_request:
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build package
run: |
python -m build
- name: Check package with twine
run: |
twine check dist/*
- name: Test installation
run: |
python -m pip install dist/*.whl
- name: Verify installation
run: |
python -c "from flask_stupe import schema_required"