Skip to content

Commit

Permalink
test_optional_dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
waltsims committed Feb 4, 2024
1 parent d8311f7 commit 2e586a8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/test_optional_dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: test_optional_requirements

on: [push, pull_request]

jobs:
test_install:
strategy:
matrix:
os: [ "windows-latest", "ubuntu-latest" ] #, "macos-latest"]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
extra_requirements: [ "test", "examples", "docs", "dev", "all" ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
# Pull the cache based on the hash value
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install '.[${{ matrix.extra_requirements }}]'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ docs = ["m2r2==0.3.2",
"sphinx-tabs==3.4.4",
"sphinx-toolbox==3.5.0",
"furo==2023.9.10"]
dev = ["pre-commit==3.6.0"]
dev = ["pre-commit==3.5.0"]

[tool.hatch.version]
path = "kwave/__init__.py"
Expand Down

0 comments on commit 2e586a8

Please sign in to comment.