Skip to content

Commit f674e14

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

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

+38
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,44 @@ 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: ${{ matrix.os }}
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
os: ["ubuntu-latest"]
68+
python-version: ["3.11"]
69+
timeout-minutes: 10
70+
steps:
71+
- uses: actions/checkout@v3
72+
with:
73+
fetch-depth: 0
74+
75+
- uses: mamba-org/setup-micromamba@v1
76+
with:
77+
init-shell: >-
78+
bash
79+
environment-name: test-env
80+
cache-environment: true
81+
create-args: >-
82+
python==${{ matrix.python-version }}
83+
conda
84+
libmambapy
85+
conda-build
86+
87+
- name: Install dependencies
88+
run: python -m pip install ".[test,hg]" --pre
89+
shell: micromamba-shell {0}
90+
91+
- name: Install asv
92+
run: pip install .
93+
shell: micromamba-shell {0}
94+
95+
- name: Run tests
96+
run: pytest -k environment_bench -vvvvv
97+
shell: micromamba-shell {0}
98+
6199
docs:
62100
runs-on: ubuntu-latest
63101
steps:

0 commit comments

Comments
 (0)