diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d053d5f..1bc2065 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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} diff --git a/continuous_integration/environment-alldeps.yml b/continuous_integration/environment-alldeps.yml new file mode 100644 index 0000000..c5d470e --- /dev/null +++ b/continuous_integration/environment-alldeps.yml @@ -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 diff --git a/continuous_integration/environment.yml b/continuous_integration/environment-nodeps.yml similarity index 71% rename from continuous_integration/environment.yml rename to continuous_integration/environment-nodeps.yml index 5e2374b..f30b1e4 100644 --- a/continuous_integration/environment.yml +++ b/continuous_integration/environment-nodeps.yml @@ -1,11 +1,7 @@ name: test channels: - conda-forge - - defaults dependencies: - - pip - - psutil - - python-lmdb - pytest - pytest-asyncio - pytest-repeat