From 9d328090aa1e3782b0e26a2df6486d99b5b03656 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Sun, 11 Feb 2024 12:47:51 +0000 Subject: [PATCH] CI: Quicker runs --- .github/workflows/build_test.yml | 16 +++++++++++----- asv.conf.json | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 7b618e5..0f65f50 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -15,14 +15,20 @@ jobs: python-version: ["3.9"] steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - uses: conda-incubator/setup-miniconda@v3 with: - python-version: ${{ matrix.python-version }} - - uses: actions/checkout@v3 + activate-environment: bench + allow-softlinks: true + python-version: ${{ matrix.python }} + channels: conda-forge + channel-priority: strict + miniforge-version: latest + use-only-tar-bz2: true + use-mamba: true + - uses: actions/checkout@v4 - name: Build and test run: | pip install -e . pip install asv virtualenv asv machine --yes - asv run + asv run --quick --dry-run diff --git a/asv.conf.json b/asv.conf.json index 98fd876..20f259f 100644 --- a/asv.conf.json +++ b/asv.conf.json @@ -4,7 +4,7 @@ "project_url": "http://github.com/HaoZeke/asv_builder_examples", "repo": ".", "branches": ["main"], - "environment_type": "virtualenv", + "environment_type": "mamba", "matrix": { "req": { "numpy": ["", null],