diff --git a/.github/workflows/package-verification.yml b/.github/workflows/package-verification.yml index 1ca349f..bc00815 100644 --- a/.github/workflows/package-verification.yml +++ b/.github/workflows/package-verification.yml @@ -6,8 +6,13 @@ name: Run Package Verifications on: push: branches: [ "master" ] + paths-ignore: + - "*.md" + pull_request: branches: [ "master" ] + paths-ignore: + - "*.md" jobs: lint: @@ -38,9 +43,34 @@ jobs: run: | black --check . - test: + build-check: runs-on: ubuntu-latest needs: lint + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Set up Python 3.12 + uses: actions/setup-python@v6 + with: + python-version: "3.12" + + - name: Install build tools + run: | + python -m pip install --upgrade pip + python -m pip install build twine + + - name: Build package + run: | + python -m build + + - name: Check package metadata + run: | + twine check dist/* + + test: + runs-on: ubuntu-latest + needs: build-check strategy: fail-fast: false matrix: