Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: ["macos-11", "ubuntu-20.04", "windows-latest"]
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Setup python
uses: actions/setup-python@v4
Expand All @@ -28,11 +28,10 @@ jobs:
- name: Install requirements and package
run: |
python -m pip install -U scikit-build
python -m pip install -v .
python -m pip install -v .[dev]

- name: Run pytest
run: |
python -m pip install pytest
python -m pip install -r tests/integration/requirements.txt
python -m pytest tests

Expand All @@ -43,11 +42,11 @@ jobs:
- name: Run pytest with memray
if: matrix.python_version == '3.11' && matrix.os == 'ubuntu-20.04'
run: |
python -m pip install pytest-memray flaky
python -m pytest tests/unit/ --memray --stacks=7 --native
python -m pip install -v .[memray]
python -m pytest tests/unit/ --force-flaky --max-runs=4 --min-passes=3 --memray --stacks=7 --native

- name: Run benchmarks
if: matrix.python_version == '3.10' && matrix.os == 'ubuntu-20.04'
if: matrix.python_version == '3.11' && matrix.os == 'ubuntu-20.04'
run: |
python -m pip install richbench
richbench benchmarks/
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@
"rich",
"pytest",
"pytest-cov",
"pytest-memray>=1.5.0",
"hypothesis",
"flaky",
"black",
"pre-commit",
]
],
"memray": [
"memray>=1.10.0",
"pytest-memray>=1.5.0",
],
},
project_urls={
"Source": "https://github.com/microsoft/picologging",
Expand Down