Skip to content

Commit

Permalink
Add GitHub action to run tests on PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby committed Dec 7, 2024
1 parent e787b9f commit ac9a9be
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ac9a9be

Please sign in to comment.