Skip to content

Commit

Permalink
Add build action to always be run on any PR, or push to the repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paehler committed Nov 26, 2023
1 parent ae22586 commit b3e8059
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test Build of Package

on:
push:
pull_request:

permissions:
contents: read

jobs:
package-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- name: Build package
run: |
poetry build

0 comments on commit b3e8059

Please sign in to comment.