Skip to content

Commit

Permalink
Test environment with no optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Oct 3, 2023
1 parent ea32c94 commit 161f795
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,21 @@ on: [push, pull_request]

jobs:
test:
name: ${{ matrix.os }} ${{ matrix.python-version }}
name: ${{ matrix.os }} ${{ matrix.python-version }} ${{ matrix.environment }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11"]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9", "3.11"]
environment: [alldeps]
include:
- os: windows-latest
- os: ubuntu-latest
python-version: "3.10"
environment: alldeps
- os: ubuntu-latest
python-version: "3.9"
- os: windows-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.9"
- os: macos-latest
python-version: "3.11"
environment: nodeps

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

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

0 comments on commit 161f795

Please sign in to comment.