Skip to content

Commit

Permalink
Adding a new action to build the project on PR creation
Browse files Browse the repository at this point in the history
  • Loading branch information
smurphyCle committed Mar 12, 2024
1 parent 0d33fc5 commit 46fc31f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build the project and run any tests that exist. It must succeed for PRs to be merged.

name: Build Test

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: build
run: |
# stop the build if there are Python syntax errors or undefined names
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m build

0 comments on commit 46fc31f

Please sign in to comment.