Skip to content

Commit

Permalink
Add pytest workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tr4nt0r committed Apr 4, 2024
1 parent 68162e3 commit 2e939b6
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pytest

on: [push]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# python-version: ["pypy3.9", "pypy3.10", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt
- name: Test with pytest
run: pytest -v tests/ --cov=bring_api
6 changes: 3 additions & 3 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ mypy>=1.8.0
pre-commit>=3.6.1
python-dotenv>=1.0.1
ruff~=0.2
pytest-asyncio>=0.23.6
pytest>=8.1.1
aioresponses>=0.7.6



5 changes: 5 additions & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
aioresponses>=0.7.6
pytest-asyncio>=0.23.6
pytest-cov>=5.0.0
pytest>=8.1.1
python-dotenv>=1.0.1

0 comments on commit 2e939b6

Please sign in to comment.