Skip to content

jugmac00/will-it-build

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

will-it-build

a GitHub action to build and verify a Python package

using this action

name: Will it build?

on:
  pull_request:
  push:
    branches: [main]

jobs:
  will-it-build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-python@v4
    - uses: jugmac00/will-it-build@main

This does a couple of things:

  • clones the code
  • installs Python
  • builds your Python package via build
  • verifies the build via python -m twine check dist/*

contributing

You are very welcome to contribute!

credits

This GitHub Action was inspired when reading Python in GitHub Actions by Hynek.

Thanks a lot for your awesome blog posts!

Also, I'd like to thank the developers of build and twine.

Thanks for spending your free time!