Skip to content

Wheel Builder

Wheel Builder #68

Workflow file for this run

name: Wheel Builder
on:
push:
tags:
- '*'
jobs:
build_wheels:
name: Push new release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mpf
permissions:
id-token: write
steps:
- name: Checkout MPF
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install MPF
run: |
pip install --upgrade pip setuptools wheel build
pip install -e .
- name: Run tests
run: python -m unittest discover -s mpf/tests
- name: Build wheel
run: python -m build
- uses: actions/upload-artifact@v3
with:
path: ./dist/*.*
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1