From 231f18d9242cf001d8305de4370893ed50a65eb2 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Sun, 4 Feb 2024 00:24:08 +0000 Subject: [PATCH] CI: Add a run for the environment tests --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 951cb1b73..ab9410524 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,6 +58,44 @@ jobs: - name: Run tests run: python -m pytest -v --timeout=300 --webdriver=ChromeHeadless --durations=100 test + test_env: + name: test_environments + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest"] + python-version: ["3.12.0-rc.2"] + timeout-minutes: 10 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: mamba-org/setup-micromamba@v1 + with: + init-shell: >- + bash + environment-name: test-env + cache-environment: true + create-args: >- + python==${{ matrix.python-version }} + conda + libmambapy + conda-build + + - name: Install dependencies + run: python -m pip install ".[test,hg]" --pre + shell: micromamba-shell {0} + + - name: Install asv + run: pip install . + shell: micromamba-shell {0} + + - name: Run tests + run: pytest -k environment_bench -vvvvv + shell: micromamba-shell {0} + docs: runs-on: ubuntu-latest steps: