diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 46b7eae..d37b3de 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -8,15 +8,15 @@ on: jobs: benchmarks: - runs-on: ubuntu-latest + runs-on: codspeed-macro 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 + use-mamba: true - - 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