Skip to content

Commit 844edbe

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

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,45 @@ 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
63+
runs-on: ${{ matrix.os }}
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
os: ["ubuntu-latest"]
68+
python-version: ["3.12"]
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+
post-cleanup: 'all'
81+
cache-environment: true
82+
create-args: >-
83+
python=${{ matrix.python-version }}
84+
conda
85+
libmambapy
86+
conda-build
87+
88+
- name: Install dependencies
89+
run: python -m pip install ".[test,hg]" --pre
90+
shell: micromamba-shell {0}
91+
92+
- name: Install asv
93+
run: pip install .
94+
shell: micromamba-shell {0}
95+
96+
- name: Run tests
97+
run: pytest -k environment_bench -vvvvv
98+
shell: micromamba-shell {0}
99+
61100
docs:
62101
runs-on: ubuntu-latest
63102
steps:

0 commit comments

Comments
 (0)