Skip to content

Add towncrier config #59

Add towncrier config

Add towncrier config #59

Workflow file for this run

name: tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
workflow_call:
jobs:
style:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
# TODO move to pyproject.toml
- name: install test dependencies
run: pip install pycodestyle
- name: style
run: pycodestyle src/blaupause
pytest:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: install package
run: pip install .
- name: test
run: pytest
build:
needs:
- style
- pytest
name: Build wheel and sdist
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install pypa/build
run: python -m pip install --user build
- name: Build wheel and source tarball
run: python -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/