Skip to content

Commit

Permalink
Create Github workflow to run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ebram96 committed Jan 1, 2024
1 parent 57d80d7 commit 9e90a7b
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Unit Tests

on:
pull_request:
types:
- opened
- synchronize
- closed

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install -e .
pip install -r testing-requirements.txt
pytest -s tests
23 changes: 23 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
certifi==2023.11.17
cfgv==3.4.0
charset-normalizer==3.3.2
coverage==7.4.0
distlib==0.3.8
filelock==3.13.1
identify==2.5.33
idna==3.6
iniconfig==2.0.0
nodeenv==1.8.0
packaging==23.2
platformdirs==4.1.0
pluggy==1.3.0
pre-commit==3.6.0
pytest==7.4.4
pytest-mock==3.12.0
PyYAML==6.0.1
requests==2.31.0
requests-mock==1.11.0
setuptools==69.0.3
six==1.16.0
urllib3==2.1.0
virtualenv==20.25.0
13 changes: 13 additions & 0 deletions testing-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
certifi==2023.11.17
charset-normalizer==3.3.2
coverage==7.4.0
idna==3.6
iniconfig==2.0.0
packaging==23.2
pluggy==1.3.0
pytest==7.4.4
pytest-mock==3.12.0
requests==2.31.0
requests-mock==1.11.0
six==1.16.0
urllib3==2.1.0

0 comments on commit 9e90a7b

Please sign in to comment.