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
40 changes: 38 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ concurrency:
cancel-in-progress: true

jobs:
build:
test-no-extras:
name: test-no-extras
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
Expand All @@ -39,7 +40,42 @@ jobs:
python -m pip install --upgrade pip
python -m pip install build

make install-all-extras
make install-no-extras-for-test

- name: Test with pytest
run: |
python -m pytest tests -p no:warnings

- name: Test with pytest
run: |
python -m pytest src/hyperactive -p no:warnings

test-all-extras:
name: test-all-extras
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: ["macos-latest", "windows-latest", "ubuntu-latest"]

fail-fast: false

runs-on: ${{ matrix.os }}
timeout-minutes: 30

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
python -m pip install build

make install-all-extras-for-test

- name: Test with pytest
run: |
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ install-build-requirements:
install-all-extras:
python -m pip install .[all_extras]

install-no-extras-for-test:
python -m pip install .[test]

install-all-extras-for-test:
python -m pip install .[all_extras,test]

install-editable:
pip install -e .

Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ test = [
"pathos",
]
all_extras = [
"hyperactive[build]",
"hyperactive[test]",
"hyperactive[integrations]",
]

Expand Down