Skip to content

Commit

Permalink
Test with no optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Oct 2, 2023
1 parent b142286 commit 43c4771
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11"]
environment: [continuous_integration/environment.yml]
include:
- os: windows-latest
python-version: "3.9"
Expand All @@ -20,6 +21,9 @@ jobs:
python-version: "3.9"
- os: macos-latest
python-version: "3.11"
- os: ubuntu-latest
python-version: "3.9"
environment: continuous_integration/environment-no-optional-deps.yml

steps:
- name: Checkout source
Expand All @@ -36,7 +40,7 @@ jobs:
activate-environment: test
condarc-file: continuous_integration/condarc
python-version: ${{ matrix.python-version }}
environment-file: continuous_integration/environment.yml
environment-file: ${{ matrix.environment }}

- name: Install zict
shell: bash -l {0}
Expand Down
8 changes: 8 additions & 0 deletions continuous_integration/environment-no-optional-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: test
channels:
- conda-forge
dependencies:
- pytest
- pytest-asyncio
- pytest-repeat
- pytest-timeout
6 changes: 2 additions & 4 deletions continuous_integration/environment.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: test
channels:
- conda-forge
- defaults
dependencies:
- pip
- psutil
- python-lmdb
- psutil # Enables extra tests
- python-lmdb # Optional dependency
- pytest
- pytest-asyncio
- pytest-repeat
Expand Down

0 comments on commit 43c4771

Please sign in to comment.