Skip to content

Test with no optional dependencies #283

Test with no optional dependencies

Test with no optional dependencies #283

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.os }} ${{ matrix.environment }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
environment: ["3.9", "3.10", "3.11"]
include:
- os: windows-latest
environment: "3.9"
- os: windows-latest
environment: "3.11"
- os: macos-latest
environment: "3.9"
- os: macos-latest
environment: "3.11"
- os: ubuntu-latest
environment: nodeps
steps:
- name: Checkout source
uses: actions/checkout@v3.3.0
with:
fetch-depth: 0
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2.2.0
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
channel-priority: strict
environment-file: continuous_integration/environment-${{ matrix.environment }}.yml
activate-environment: test
auto-activate-base: false
- name: Install zict
shell: bash -l {0}
run: python setup.py install
- name: mamba list
shell: bash -l {0}
run: mamba list
- name: mamba env export
shell: bash -l {0}
run: |
echo -e "--\n--Conda Environment (re-create this with \`mamba env create --name <name> -f <output_file>\`)\n--"
mamba env export | grep -E -v '^prefix:.*$'
- name: Run pytest
shell: bash -l {0}
run: pytest --doctest-modules zict