From 2abe1ec9cf344058b2b7f39f4bc41ba6e4cad3ee Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Mon, 25 Nov 2024 17:48:45 +0000 Subject: [PATCH 1/3] test with conda --- .github/workflows/benchmarks.yml | 11 +++++------ environment.yml | 9 +++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 environment.yml diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 46b7eae..148e1b5 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -11,12 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: conda-incubator/setup-miniconda@v3 with: - python-version: '3.10' - - run: pip install -r requirements.txt + environment-file: environment.yml + activate-environment: my_env - - uses: CodSpeedHQ/action@feat/tokenless-upload + - uses: CodSpeedHQ/action@v3 with: - upload_url: https://api.staging.preview.codspeed.io/upload - run: pytest tests/ --codspeed + run: conda run -n my_env pytest tests/ --codspeed diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..0886f49 --- /dev/null +++ b/environment.yml @@ -0,0 +1,9 @@ +name: my_env +channels: + - conda-forge +dependencies: + - python>=3.12 + - pip + - pip: + - pytest~=7.1.3 + - pytest-codspeed~=3.0.0 \ No newline at end of file From a33008b6804436c5678aa582f7d6bb7b6f4d6858 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Wed, 4 Dec 2024 16:11:22 +0100 Subject: [PATCH 2/3] Update .github/workflows/benchmarks.yml --- .github/workflows/benchmarks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 148e1b5..7ae1240 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -15,6 +15,7 @@ jobs: with: environment-file: environment.yml activate-environment: my_env + use-mamba: true - uses: CodSpeedHQ/action@v3 with: From 17ee5793d48a09bb5415e83363096147b86a99fc Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Wed, 22 Jan 2025 11:28:30 +0100 Subject: [PATCH 3/3] macro-run --- .github/workflows/benchmarks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 7ae1240..d37b3de 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -8,7 +8,7 @@ on: jobs: benchmarks: - runs-on: ubuntu-latest + runs-on: codspeed-macro steps: - uses: actions/checkout@v3 - uses: conda-incubator/setup-miniconda@v3