Skip to content

Commit

Permalink
Merge pull request #168 from sdfordham/tests-workflow
Browse files Browse the repository at this point in the history
Add a tests workflow
  • Loading branch information
AnthonyBloomer authored Nov 16, 2023
2 parents 48cbe0c + a8954d4 commit 2bf5f7e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run unittests

on:
pull_request:
branches: [ "main", "master" ]

permissions:
contents: read

jobs:
tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run tests
run: python -m unittest discover -s tests

0 comments on commit 2bf5f7e

Please sign in to comment.