Skip to content

Commit

Permalink
ci: Run pytest test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
germainlefebvre4 committed Aug 15, 2023
1 parent 126370f commit 0d74d08
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Test
on:
- pull_request

jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt
pip install pytest pytest-dotenv pytest-dateutil
- name: Test with pytest
run: |
pytest -sv tests/
6 changes: 6 additions & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
click
requests
python-dotenv
pytest
pytest-dotenv
python-dateutil

0 comments on commit 0d74d08

Please sign in to comment.