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 6a2af5c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,41 @@ jobs:
- name: Run tests
run: python -m pytest -v --timeout=300 --webdriver=ChromeHeadless --durations=100 test

test_env:
name: test_environments
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
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
pip
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 6a2af5c

Please sign in to comment.