Skip to content

Commit

Permalink
Ci cd pytest (#57)
Browse files Browse the repository at this point in the history
* adding CI/CD pytest workflow
* adding timeouts for tests that can hang
* commented out tests that are hanging
---------

Signed-off-by: 2byrds <[email protected]>
  • Loading branch information
2byrds authored Mar 11, 2024
1 parent 060dbcb commit 917dab4
Show file tree
Hide file tree
Showing 4 changed files with 292 additions and 358 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Python application test with Github Actions

on:
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10.13
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
'cryptography>=39.0.2',
'requests>=2.28',
'numpy>=1.26.0',
'pytest>=6.2.5'
'pytest>=6.2.5',
'pytest-timeout>=2.3.1'
],
extras_require={
},
Expand Down
Loading

0 comments on commit 917dab4

Please sign in to comment.