Skip to content

Commit 6a2af5c

Browse files
committed
CI: Add a run for the environment tests
1 parent 34efa3f commit 6a2af5c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

+35
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,41 @@ jobs:
5858
- name: Run tests
5959
run: python -m pytest -v --timeout=300 --webdriver=ChromeHeadless --durations=100 test
6060

61+
test_env:
62+
name: test_environments
63+
runs-on: "ubuntu-latest"
64+
strategy:
65+
fail-fast: false
66+
timeout-minutes: 10
67+
steps:
68+
- uses: actions/checkout@v3
69+
with:
70+
fetch-depth: 0
71+
72+
- uses: mamba-org/setup-micromamba@v1
73+
with:
74+
init-shell: >-
75+
bash
76+
environment-name: test-env
77+
cache-environment: true
78+
create-args: >-
79+
python
80+
pip
81+
libmambapy
82+
conda-build
83+
84+
- name: Install dependencies
85+
run: python -m pip install ".[test,hg]" --pre
86+
shell: micromamba-shell {0}
87+
88+
- name: Install asv
89+
run: pip install .
90+
shell: micromamba-shell {0}
91+
92+
- name: Run tests
93+
run: pytest -k environment_bench -vvvvv
94+
shell: micromamba-shell {0}
95+
6196
docs:
6297
runs-on: ubuntu-latest
6398
steps:

0 commit comments

Comments
 (0)