Skip to content

Commit

Permalink
CI: Add a run for the environment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Feb 4, 2024
1 parent 34efa3f commit f674e14
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.11"]
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:
Expand Down

0 comments on commit f674e14

Please sign in to comment.