Skip to content

Commit

Permalink
Test build action (#8)
Browse files Browse the repository at this point in the history
* Adding a new action to build the project on PR creation
  • Loading branch information
smurphyCle authored Mar 15, 2024
1 parent e9a8024 commit a807a67
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 a807a67

Please sign in to comment.