Skip to content

Commit 9e2f508

Browse files
committed
test with conda
1 parent 4bc77ee commit 9e2f508

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- uses: actions/setup-python@v3
14+
- uses: conda-incubator/setup-miniconda@v3
1515
with:
16-
python-version: '3.10'
17-
- run: pip install -r requirements.txt
16+
environment-file: environment.yml
17+
activate-environment: my_env
1818

19-
- uses: CodSpeedHQ/action@feat/tokenless-upload
19+
- uses: CodSpeedHQ/action@v3
2020
with:
21-
upload_url: https://api.staging.preview.codspeed.io/upload
22-
run: pytest tests/ --codspeed
21+
run: conda run -n my_env pytest tests/ --codspeed
22+
upload-url: https://api.staging.preview.codspeed.io/upload

environment.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: my_env
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python>=3.12
6+
- pip
7+
- pip:
8+
- pytest~=7.1.3
9+
- pytest-codspeed~=3.0.0

0 commit comments

Comments
 (0)