Skip to content

Commit 2bf5f7e

Browse files
Merge pull request #168 from sdfordham/tests-workflow
Add a tests workflow
2 parents 48cbe0c + a8954d4 commit 2bf5f7e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run unittests
2+
3+
on:
4+
pull_request:
5+
branches: [ "main", "master" ]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: 3.9
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
python -m pip install -r requirements.txt
24+
- name: Run tests
25+
run: python -m unittest discover -s tests

0 commit comments

Comments
 (0)