From 99e3cb84b15a2d3537a608338a75fd63694c9cab Mon Sep 17 00:00:00 2001 From: Adam Seering Date: Wed, 16 Aug 2023 19:09:51 +0000 Subject: [PATCH] Add a test of the build pipeline --- .github/workflows/build-test.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-test.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..d852810 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,33 @@ +name: Test building Python 🐍 distributions 📦 + +on: push + +# This job should be kept in sync with the job in `publish-to-test-pypi.yml`, +# except the version in this file shouldn't actually publish any changes, +# and should run on any push (not just a push to main). + +jobs: + build: + name: Build Python 🐍 distributions 📦 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install pypa/build + run: >- + python3 -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + cat pyproject.toml ; + python3 -m + build + --sdist + --wheel + --outdir dist/ + .