Skip to content

Commit 865e69b

Browse files
authored
Create Github workflow to run unit tests (#32)
1 parent 57d80d7 commit 865e69b

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

.github/workflows/unit-tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Unit Tests
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- closed
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.12"
19+
- name: Install dependencies
20+
run: |
21+
pip install -e .
22+
pip install -r testing-requirements.txt
23+
pytest -s tests

requirements.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
certifi==2023.11.17
2+
cfgv==3.4.0
3+
charset-normalizer==3.3.2
4+
coverage==7.4.0
5+
distlib==0.3.8
6+
filelock==3.13.1
7+
identify==2.5.33
8+
idna==3.6
9+
iniconfig==2.0.0
10+
nodeenv==1.8.0
11+
packaging==23.2
12+
platformdirs==4.1.0
13+
pluggy==1.3.0
14+
pre-commit==3.6.0
15+
pytest==7.4.4
16+
pytest-mock==3.12.0
17+
PyYAML==6.0.1
18+
requests==2.31.0
19+
requests-mock==1.11.0
20+
setuptools==69.0.3
21+
six==1.16.0
22+
urllib3==2.1.0
23+
virtualenv==20.25.0

testing-requirements.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
certifi==2023.11.17
2+
charset-normalizer==3.3.2
3+
coverage==7.4.0
4+
idna==3.6
5+
iniconfig==2.0.0
6+
packaging==23.2
7+
pluggy==1.3.0
8+
pytest==7.4.4
9+
pytest-mock==3.12.0
10+
requests==2.31.0
11+
requests-mock==1.11.0
12+
six==1.16.0
13+
urllib3==2.1.0

0 commit comments

Comments
 (0)