From ac9a9be9d5f88fc01208be2df758251250ee0b37 Mon Sep 17 00:00:00 2001 From: Hugh Sorby Date: Sat, 7 Dec 2024 13:03:01 +1300 Subject: [PATCH] Add GitHub action to run tests on PR. --- .github/workflows/run_tests.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/run_tests.yaml diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml new file mode 100644 index 0000000..ed619ef --- /dev/null +++ b/.github/workflows/run_tests.yaml @@ -0,0 +1,25 @@ +name: Build and test library + +on: + pull_request: + +jobs: + build-and-test: + runs-on: ubuntu-20.04 + name: Run tests + steps: + - name: Clone source + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.12 + - name: Install library + shell: bash + run: | + pip install scaffoldfitter + - name: Run tests + shell: bash + run: | + cd scaffoldfitter + python -m unittest --discover -s